mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Improve daily.sh robustness
This commit is contained in:
12
daily.sh
12
daily.sh
@@ -1,10 +1,12 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd $(dirname $0) || exit 1
|
||||
set -eu
|
||||
|
||||
if [ $(php daily.php -f update) -eq 1 ]; then
|
||||
git pull --quiet
|
||||
php includes/sql-schema/update.php
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
if [ "$(php daily.php -f update)" -eq 1 ]; then
|
||||
git pull --quiet
|
||||
php includes/sql-schema/update.php
|
||||
fi
|
||||
|
||||
php daily.php -f syslog
|
||||
|
Reference in New Issue
Block a user