check if daily.php returns 0 and only do the db clean up if it does (dont update submodules or do a schema upgrade etc)

This commit is contained in:
Christopher Smith
2016-02-23 09:20:14 +11:00
parent 73c409dcdc
commit 731c2eb443
+5 -1
View File
@@ -33,7 +33,11 @@ status_run() {
if [ -z "$arg" ]; then
up=$(php daily.php -f update >&2; echo $?)
if [ "$up" -eq 1 ]; then
if [ "$up" -eq 0 ]; then
# Updates are disabled.
status_run 'Cleaning up DB' "$0 cleanup"
exit $?
elif [ "$up" -eq 1 ]; then
# Update to Master-Branch
status_run 'Updating to latest codebase' 'git pull --quiet'
elif [ "$up" -eq 3 ]; then