Added error handling to NC maint call section
This commit is contained in:
parent
2a950b28c6
commit
7d3a59222e
@ -378,6 +378,13 @@ fi
|
|||||||
|
|
||||||
## Put NextCloud in maintenance mode
|
## Put NextCloud in maintenance mode
|
||||||
ncMaint on
|
ncMaint on
|
||||||
|
# check if it was successful
|
||||||
|
if [ "$maintResult" = "0" ]; then
|
||||||
|
echo -e "\e[0;36m...done\e[0m" >> $logFile
|
||||||
|
else
|
||||||
|
cleanUp 503
|
||||||
|
quit 500
|
||||||
|
fi
|
||||||
|
|
||||||
## Read sqlDetails file and extract necessary information
|
## Read sqlDetails file and extract necessary information
|
||||||
mapfile -t sqlParams < $sqlDetails
|
mapfile -t sqlParams < $sqlDetails
|
||||||
|
Loading…
Reference in New Issue
Block a user