X-Git-Url: https://git.p6c8.net/nextcloud-backup-restore.git/blobdiff_plain/ef1ef85ac3afd35b16f402f4c35c860c99dc72e8..377d24d0fe3eabb08ebd4a68ac13191b9802dcd0:/NextcloudRestore.sh diff --git a/NextcloudRestore.sh b/NextcloudRestore.sh index 1669a18..f3ff6cc 100644 --- a/NextcloudRestore.sh +++ b/NextcloudRestore.sh @@ -99,9 +99,7 @@ fi # Set maintenance mode # echo "Set maintenance mode for Nextcloud..." -cd "${nextcloudFileDir}" -sudo -u "${webserverUser}" php occ maintenance:mode --on -cd ~ +sudo -u "${webserverUser}" php ${nextcloudFileDir}/occ maintenance:mode --on echo "Done" echo @@ -215,7 +213,7 @@ echo "Done" echo # -# Update the system data-fingerprint (see https://docs.nextcloud.com/server/15/admin_manual/configuration_server/occ_command.html#maintenance-commands-label) +# Update the system data-fingerprint (see https://docs.nextcloud.com/server/16/admin_manual/configuration_server/occ_command.html#maintenance-commands-label) # echo "Updating the system data-fingerprint..." sudo -u "${webserverUser}" php ${nextcloudFileDir}/occ maintenance:data-fingerprint