diff options
Diffstat (limited to 'bin/ncp/BACKUPS/nc-rsync.sh')
-rw-r--r-- | bin/ncp/BACKUPS/nc-rsync.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ncp/BACKUPS/nc-rsync.sh b/bin/ncp/BACKUPS/nc-rsync.sh index 6756f2d0..f92de08e 100644 --- a/bin/ncp/BACKUPS/nc-rsync.sh +++ b/bin/ncp/BACKUPS/nc-rsync.sh @@ -18,7 +18,7 @@ install() configure() { - sudo -u www-data php "$BASEDIR"/nextcloud/occ maintenance:mode --on + save_maintenance_mode local DATADIR DATADIR=$( sudo -u www-data php /var/www/nextcloud/occ config:system:get datadirectory ) || { @@ -28,7 +28,7 @@ configure() rsync -ax -e "ssh -p $PORTNUMBER" --delete "$DATADIR" "$DESTINATION" - sudo -u www-data php "$BASEDIR"/nextcloud/occ maintenance:mode --off + restore_maintenance_mode } # License |