Cdist fully functional
This commit is contained in:
parent
b07c8ef801
commit
13cfe5df21
3 changed files with 5 additions and 0 deletions
|
@ -23,6 +23,8 @@ db_user=$(cat "$__object/parameter/db-user")
|
||||||
db_pass=$(cat "$__object/parameter/db-pass")
|
db_pass=$(cat "$__object/parameter/db-pass")
|
||||||
admin_user=$(cat "$__object/parameter/admin-user")
|
admin_user=$(cat "$__object/parameter/admin-user")
|
||||||
admin_pass=$(cat "$__object/parameter/admin-pass")
|
admin_pass=$(cat "$__object/parameter/admin-pass")
|
||||||
|
domain=$(cat "$__object/parameter/domain")
|
||||||
|
|
||||||
# TODO check shasum of tar ball
|
# TODO check shasum of tar ball
|
||||||
cat <<eof
|
cat <<eof
|
||||||
curl -s -L ${nextcloud_uri} -o /tmp/nextcloud.tar.bz2
|
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 \
|
sudo -u www-data php occ maintenance:install --database \
|
||||||
"pgsql" --database-name "$db_name" --database-user "$db_user" --database-pass \
|
"pgsql" --database-name "$db_name" --database-user "$db_user" --database-pass \
|
||||||
"$db_pass" --admin-user "$admin_user" --admin-pass "$admin_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
|
eof
|
||||||
|
|
1
parameter/default/domain
Normal file
1
parameter/default/domain
Normal file
|
@ -0,0 +1 @@
|
||||||
|
cloud.ungleich.ch
|
|
@ -5,3 +5,4 @@ admin-user
|
||||||
admin-pass
|
admin-pass
|
||||||
uri
|
uri
|
||||||
version
|
version
|
||||||
|
domain
|
||||||
|
|
Loading…
Reference in a new issue