From 6988d45024f1dc0fad13ffdd304bbaf78f1942e0 Mon Sep 17 00:00:00 2001 From: DecaTec Date: Wed, 29 Apr 2020 12:02:50 +0200 Subject: [PATCH 1/1] When backup is cancelled, restart the webserver --- NextcloudBackup.sh | 7 ++++++- NextcloudRestore.sh | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) 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) -- 2.34.1