mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-04 16:12:20 +02:00
Fixes the fact daily.sh does not run outside of the install directory
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
dir=`dirname $0`
|
||||||
|
cd $dir;
|
||||||
|
|
||||||
if [ $(php daily.php -f update) -eq 1 ]; then
|
if [ $(php daily.php -f update) -eq 1 ]; then
|
||||||
git pull --no-edit --quiet
|
git pull --no-edit --quiet
|
||||||
php includes/sql-schema/update.php
|
php includes/sql-schema/update.php
|
||||||
|
|||||||
Reference in New Issue
Block a user