From f0c3c14c241e845b46e6a25e45c41f17abaa099c Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Wed, 28 Oct 2015 18:26:16 +0000 Subject: [PATCH] --- lam/lib/cron.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 lam/lib/cron.sh diff --git a/lam/lib/cron.sh b/lam/lib/cron.sh new file mode 100755 index 00000000..ef0fb3e7 --- /dev/null +++ b/lam/lib/cron.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +dir=`dirname $0` + +if [ -x /usr/bin/php5 ]; then + /usr/bin/php5 -f $dir/cron.inc $* + exit $? +elif [ -x /usr/bin/php ]; then + /usr/bin/php -f $dir/cron.inc $* + exit $? +fi + +echo "No PHP executable found" + +exit 1 \ No newline at end of file