LDAPAccountManager/lam/lib/cron.sh

15 lines
220 B
Bash
Raw Normal View History

2015-12-15 17:15:08 +00:00
#!/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