diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-06-19 13:12:19 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-06-19 13:40:40 +0300 |
commit | c591494b30cf3845ea2231b6a98ad1154e69665c (patch) | |
tree | b5d39dc119ab934f1f366be1330923e764790ac5 /etc | |
parent | 8f873c174d5f7b057825a8a289937b59c59ebcb4 (diff) |
build: refresh services only in curl installer
Diffstat (limited to 'etc')
-rw-r--r-- | etc/ncp-config.d/nc-nextcloud.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/etc/ncp-config.d/nc-nextcloud.sh b/etc/ncp-config.d/nc-nextcloud.sh index f4bb8d61..d8bb7750 100644 --- a/etc/ncp-config.d/nc-nextcloud.sh +++ b/etc/ncp-config.d/nc-nextcloud.sh @@ -68,16 +68,16 @@ install() usermod -a -G redis www-data - [[ "$DOCKERBUILD" != 1 ]] && { + # refresh configuration, only needed in curl installer + [[ ! -f /.ncp-image ]] && { systemctl restart redis-server systemctl enable redis-server - # need to restart php - service php7.0-fpm stop - service mysql stop + systemctl stop php7.0-fpm + systemctl stop mysql sleep 0.5 - service php7.0-fpm start - service mysql start + systemctl start php7.0-fpm + systemctl start mysql } # service to randomize passwords on first boot @@ -94,7 +94,7 @@ ExecStart=/bin/bash /usr/local/bin/ncp-provisioning.sh [Install] WantedBy=multi-user.target EOF - systemctl enable nc-provisioning + [[ "$DOCKERBUILD" != 1 ]] && systemctl enable nc-provisioning return 0 } |