diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-07-23 20:56:06 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-08-11 00:17:55 +0300 |
commit | 1e98c8e93ccb58fe0dc7bd130d3d4843458c1bf7 (patch) | |
tree | a3d015b7b12d4de2df41ff837129c7f5ba47bb19 /etc/nextcloudpi-config.d/nc-restore.sh | |
parent | 41e71b4cbb02a9c3d0be01d25dd49aa39d06b8c8 (diff) |
restart HTTPd delayed on the bg, so it does not kill AJAX responsev0.17.1
Diffstat (limited to 'etc/nextcloudpi-config.d/nc-restore.sh')
-rw-r--r-- | etc/nextcloudpi-config.d/nc-restore.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/nextcloudpi-config.d/nc-restore.sh b/etc/nextcloudpi-config.d/nc-restore.sh index 8adea371..e1d6097c 100644 --- a/etc/nextcloudpi-config.d/nc-restore.sh +++ b/etc/nextcloudpi-config.d/nc-restore.sh @@ -44,7 +44,8 @@ configure() [ -d $BASEDIR_ ] || { echo -e "$BASEDIR_ not found"; return 1; } [ -d $BASEDIR_/nextcloud ] && { echo -e "WARNING: overwriting old instance"; } - service apache2 stop + cd $BASEDIR_/nextcloud + sudo -u www-data php occ maintenance:mode --on # RESTORE FILES echo -e "restore files..." @@ -69,8 +70,6 @@ EOF cd $BASEDIR_/nextcloud sudo -u www-data php occ maintenance:mode --off - - service apache2 start } install() { :; } |