From aa5d7f488cba821826b8b98651ccc88a7e81a87b Mon Sep 17 00:00:00 2001 From: laf Date: Thu, 23 Oct 2014 21:39:16 +0100 Subject: [PATCH] Fixes the fact daily.sh does not run outside of the install directory --- daily.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daily.sh b/daily.sh index b74705666..5f63d3cad 100644 --- a/daily.sh +++ b/daily.sh @@ -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