From: DecaTec Date: Wed, 29 Apr 2020 10:02:50 +0000 (+0200) Subject: When backup is cancelled, restart the webserver X-Git-Tag: v2.1.0~6 X-Git-Url: https://git.p6c8.net/nextcloud-backup-restore.git/commitdiff_plain/6988d45024f1dc0fad13ffdd304bbaf78f1942e0?ds=inline;hp=--cc When backup is cancelled, restart the webserver --- 6988d45024f1dc0fad13ffdd304bbaf78f1942e0 diff --git a/NextcloudBackup.sh b/NextcloudBackup.sh index d1b1ed2..72bc4a0 100644 --- a/NextcloudBackup.sh +++ b/NextcloudBackup.sh @@ -3,7 +3,7 @@ # # Bash script for creating backups of Nextcloud. # -# Version 1.1.0 +# Version 1.1.1 # # Usage: # - With backup directory specified in the script: ./NextcloudBackup.sh @@ -101,6 +101,11 @@ function CtrlC() { echo "Maintenance mode still enabled." fi + echo "Starting web server..." + systemctl start "${webserverServiceName}" + echo "Done" + echo + exit 1 } diff --git a/NextcloudRestore.sh b/NextcloudRestore.sh index 08fc504..6a4fcae 100644 --- a/NextcloudRestore.sh +++ b/NextcloudRestore.sh @@ -3,7 +3,7 @@ # # Bash script for restoring backups of Nextcloud. # -# Version 1.1.0 +# Version 1.1.1 # # Usage: # - With backup directory specified in the script: ./NextcloudRestore.sh (e.g. ./NextcloudRestore.sh 20170910_132703)