From 731c2eb443b9132e64822446da96adeaf124e1a8 Mon Sep 17 00:00:00 2001 From: Christopher Smith Date: Tue, 23 Feb 2016 09:20:14 +1100 Subject: [PATCH] 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) --- daily.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/daily.sh b/daily.sh index 17591fa8f..05808c362 100755 --- a/daily.sh +++ b/daily.sh @@ -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