mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 08:02:51 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user