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:
14
daily.sh
14
daily.sh
@ -1,15 +1,17 @@
|
||||
#!/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
|
||||
php daily.php -f eventlog
|
||||
php daily.php -f authlog
|
||||
php daily.php -f perf_times
|
||||
php daily.php -f perf_times
|
||||
php daily.php -f callback
|
||||
php daily.php -f device_perf
|
||||
|
Reference in New Issue
Block a user