From 1e57ea1d15d2a8e2bcd1ec920164f335631c0445 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Wed, 19 Sep 2018 23:50:33 -0600 Subject: [PATCH] Added NC maint section --- backup.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/backup.sh b/backup.sh index d9b2bfe..214becc 100755 --- a/backup.sh +++ b/backup.sh @@ -228,6 +228,16 @@ else fi +### Put NextCloud in maintenance mode +ncMaint on +# check if successful +if [ "$maintResult" = "0" ]; then + echo -e "${bold}${cyan}${stamp}...done${normal}" >> "$logFile" +else + cleanup 503 + quit 200 +fi + ### Exit script quit