mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-03 00:11:49 +02:00
Merge pull request #1531 from job/robust_daily
Improve daily.sh robustness
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
cd $(dirname $0) || exit 1
|
set -eu
|
||||||
|
|
||||||
if [ $(php daily.php -f update) -eq 1 ]; then
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
if [ "$(php daily.php -f update)" -eq 1 ]; then
|
||||||
git pull --quiet
|
git pull --quiet
|
||||||
php includes/sql-schema/update.php
|
php includes/sql-schema/update.php
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user