librenms/daily.sh
2015-11-21 11:22:59 +00:00

20 lines
373 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
cd "$(dirname "$0")"
up=$(php daily.php -f update >&2; echo $?)
if [ "$up" -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 callback
php daily.php -f device_perf
php daily.php -f notifications