Fixes the fact daily.sh does not run outside of the install directory

This commit is contained in:
laf
2014-10-23 21:39:16 +01:00
parent bb1a63635b
commit aa5d7f488c

View File

@ -1,5 +1,8 @@
#!/bin/bash
dir=`dirname $0`
cd $dir;
if [ $(php daily.php -f update) -eq 1 ]; then
git pull --no-edit --quiet
php includes/sql-schema/update.php