now it tests on the remote machine
This commit is contained in:
parent
0a98381bd7
commit
03ce37110e
1 changed files with 8 additions and 11 deletions
|
@ -24,7 +24,6 @@ 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")
|
domain=$(cat "$__object/parameter/domain")
|
||||||
INSTALL_STATE="$([ -d /var/www/nextcloud ] && cd /var/www/nextcloud && sudo -u www-data php occ status| grep -o true)"
|
|
||||||
|
|
||||||
# TODO check shasum of tar ball
|
# TODO check shasum of tar ball
|
||||||
cat <<eof
|
cat <<eof
|
||||||
|
@ -34,15 +33,13 @@ rm -f /tmp/nextcloud.tar.bz2
|
||||||
chown -R www-data:www-data /var/www/nextcloud
|
chown -R www-data:www-data /var/www/nextcloud
|
||||||
eof
|
eof
|
||||||
|
|
||||||
if [ ! "$INSTALL_STATE" ] ; then
|
|
||||||
#if [ "$INSTALL_STATE" == "false" ] ; then
|
|
||||||
cat <<eof
|
cat <<eof
|
||||||
cd /var/www/nextcloud
|
INSTALL_STATE="$([ -d /var/www/nextcloud ] && cd /var/www/nextcloud && sudo -u www-data php occ status| grep -o true)"
|
||||||
sudo -u www-data php occ maintenance:install --database \
|
if [ ! "$INSTALL_STATE" ] ; then
|
||||||
"pgsql" --database-name "$db_name" --database-user "$db_user" --database-pass \
|
cd /var/www/nextcloud
|
||||||
$db_pass" --admin-user "$admin_user" --admin-pass "$admin_pass"
|
sudo -u www-data php occ maintenance:install --database \
|
||||||
sudo -u www-data php occ config:system:set trusted_domains 2 --value="$domain"
|
"pgsql" --database-name "$db_name" --database-user "$db_user" --database-pass \
|
||||||
eof
|
$db_pass" --admin-user "$admin_user" --admin-pass "$admin_pass"
|
||||||
|
sudo -u www-data php occ config:system:set trusted_domains 2 --value="$domain"
|
||||||
fi
|
fi
|
||||||
|
eof
|
||||||
|
|
Loading…
Reference in a new issue