Removed NCmaint function

This commit is contained in:
Asif Bacchus 2018-10-19 21:38:27 -06:00
parent 941229d390
commit ca6b207d50
1 changed files with 0 additions and 19 deletions

View File

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