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 ###