From 30708cbb2fb30d800cee1d32e063e87678f86437 Mon Sep 17 00:00:00 2001 From: DecaTec Date: Thu, 2 Dec 2021 06:35:19 +0100 Subject: [PATCH] Update fingerprint after disabling maintenance mode --- CHANGELOG.md | 5 +++++ NextcloudBackup.sh | 2 +- NextcloudRestore.sh | 14 +++++++------- setup.sh | 2 +- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 10240ab..928fa27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.3.3 + +### Restore +- Update fingerprint after disabling maintenance mode + ## 2.3.2 ### Restore diff --git a/NextcloudBackup.sh b/NextcloudBackup.sh index a60eb96..d96ec3c 100644 --- a/NextcloudBackup.sh +++ b/NextcloudBackup.sh @@ -3,7 +3,7 @@ # # Bash script for creating backups of Nextcloud. # -# Version 2.3.2 +# Version 2.3.3 # # Requirements: # - pigz (https://zlib.net/pigz/) for using backup compression. If not available, you can use another compression algorithm (e.g. gzip) diff --git a/NextcloudRestore.sh b/NextcloudRestore.sh index 90fa336..5febde7 100644 --- a/NextcloudRestore.sh +++ b/NextcloudRestore.sh @@ -3,7 +3,7 @@ # # Bash script for restoring backups of Nextcloud. # -# Version 2.3.2 +# Version 2.3.3 # # Requirements: # - pigz (https://zlib.net/pigz/) for using backup compression. If not available, you can use another compression algorithm (e.g. gzip) @@ -302,18 +302,18 @@ echo "Done" echo # -# Update the system data-fingerprint (see https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#maintenance-commands-label) +# Disbale maintenance mode # -echo "$(date +"%H:%M:%S"): Updating the system data-fingerprint..." -sudo -u "${webserverUser}" php ${nextcloudFileDir}/occ maintenance:data-fingerprint +echo "$(date +"%H:%M:%S"): Switching off maintenance mode..." +sudo -u "${webserverUser}" php ${nextcloudFileDir}/occ maintenance:mode --off echo "Done" echo # -# Disbale maintenance mode +# Update the system data-fingerprint (see https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#maintenance-commands-label) # -echo "$(date +"%H:%M:%S"): Switching off maintenance mode..." -sudo -u "${webserverUser}" php ${nextcloudFileDir}/occ maintenance:mode --off +echo "$(date +"%H:%M:%S"): Updating the system data-fingerprint..." +sudo -u "${webserverUser}" php ${nextcloudFileDir}/occ maintenance:data-fingerprint echo "Done" echo diff --git a/setup.sh b/setup.sh index 43fcee4..2f384ba 100755 --- a/setup.sh +++ b/setup.sh @@ -3,7 +3,7 @@ # # Bash script an easy setup of NextcloudBackup.sh and NextcloudRestore.sh # -# Version 2.3.2 +# Version 2.3.3 # # Usage: # - call the setup.sh script -- 2.34.1