Added ncMaint call in cleanup function
This commit is contained in:
parent
c9a5c8a71f
commit
fcef47b712
10
backup.sh
10
backup.sh
@ -114,6 +114,16 @@ function cleanup {
|
|||||||
echo -e "${op}${stamp} 503 error page never copied to webroot," \
|
echo -e "${op}${stamp} 503 error page never copied to webroot," \
|
||||||
"nothing to cleanup" >> "$logFile"
|
"nothing to cleanup" >> "$logFile"
|
||||||
fi
|
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
|
||||||
|
quit 100
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
### End of Functions ###
|
### End of Functions ###
|
||||||
|
Loading…
Reference in New Issue
Block a user