Cdist fully functional

This commit is contained in:
Modulos 2017-05-02 06:04:59 +02:00
parent b07c8ef801
commit 13cfe5df21
3 changed files with 5 additions and 0 deletions

View file

@ -23,6 +23,8 @@ db_user=$(cat "$__object/parameter/db-user")
db_pass=$(cat "$__object/parameter/db-pass")
admin_user=$(cat "$__object/parameter/admin-user")
admin_pass=$(cat "$__object/parameter/admin-pass")
domain=$(cat "$__object/parameter/domain")
# TODO check shasum of tar ball
cat <<eof
curl -s -L ${nextcloud_uri} -o /tmp/nextcloud.tar.bz2
@ -33,4 +35,5 @@ cd /var/www/nextcloud
sudo -u www-data php occ maintenance:install --database \
"pgsql" --database-name "$db_name" --database-user "$db_user" --database-pass \
"$db_pass" --admin-user "$admin_user" --admin-pass "$admin_pass"
sudo -u www-data php occ config:system:set trusted_domains 2 --value="$domain"
eof

1
parameter/default/domain Normal file
View file

@ -0,0 +1 @@
cloud.ungleich.ch

View file

@ -5,3 +5,4 @@ admin-user
admin-pass
uri
version
domain