Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'etc/nextcloudpi-config.d/nc-restore.sh')
-rw-r--r--etc/nextcloudpi-config.d/nc-restore.sh5
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() { :; }