From b1f0377e2722e75a18a5e56cb9cf56336bc4674f Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sun, 19 May 2019 20:34:41 -0600 Subject: [PATCH] update func cleanup to call svcSeafile --- backup.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/backup.sh b/backup.sh index dce6659..f22bf64 100755 --- a/backup.sh +++ b/backup.sh @@ -76,16 +76,8 @@ function cleanup { "nothing to cleanup" >> "$logFile" fi - ## Exit Seafile maintenance mode regardless of current status - ncMaint off - # check if successful - if [ "$maintResult" = "0" ]; then - echo -e "${info}[$(stamp)] -- [INFO] Seafile now in regular" \ - "operating mode --${normal}" >> "$logFile" - else - exitError+=("[$(stamp)]_101") - quit - fi + ## Restart Seafile services + svcSeafile start } ### scriptHelp -- display usage information for this script