diff options
Diffstat (limited to 'etc/ncp-config.d/nc-restore.sh')
-rw-r--r-- | etc/ncp-config.d/nc-restore.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/ncp-config.d/nc-restore.sh b/etc/ncp-config.d/nc-restore.sh index d0ec3ddb..044811ae 100644 --- a/etc/ncp-config.d/nc-restore.sh +++ b/etc/ncp-config.d/nc-restore.sh @@ -158,11 +158,11 @@ bash /usr/local/bin/nextcloud-domain.sh # restart PHP if needed [[ "$NEED_RESTART" == "1" ]] && \ bash -c " sleep 3 - systemctl stop php7.0-fpm - systemctl stop mysqld + service php7.0-fpm stop + service mysqld stop sleep 0.5 - systemctl start php7.0-fpm - systemctl start mysqld + service php7.0-fpm start + service mysqld start " &>/dev/null & EOF chmod +x /usr/local/bin/ncp-restore |