From ca6b207d50b68cce7800dfa8eae3c65badd75303 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Fri, 19 Oct 2018 21:38:27 -0600 Subject: [PATCH] Removed NCmaint function --- root/scripts/backup.sh | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/root/scripts/backup.sh b/root/scripts/backup.sh index 4535b93..d45573f 100644 --- a/root/scripts/backup.sh +++ b/root/scripts/backup.sh @@ -140,14 +140,6 @@ function checkExist { fi } -### ncMaint - pass requested mode change type to NextCloud occ -function ncMaint { - sudo -u ${webUser} php ${ncroot}/occ maintenance:mode --$1 \ - >> "$logFile" 2>&1 - maintResult="$?" - return "$maintResult" -} - ### cleanup - cleanup files and directories created by this script function cleanup { ## remove SQL dump file and directory @@ -185,17 +177,6 @@ function cleanup { echo -e "${op}${stamp} 503 error page never copied to webroot," \ "nothing to cleanup" >> "$logFile" fi - - ## Exit NextCloud maintenance mode regardless of current status - ncMaint off - # check if successful - if [ "$maintResult" = "0" ]; then - echo -e "${info}${stamp} -- [INFO] NextCloud now in regular" \ - "operating mode --${normal}" >> "$logFile" - else - exitError+=('101') - quit - fi } ### End of Functions ###