"README.md" did not exist on "00f6ac877e73d8b143e48f6bc50feeca9ceea897"
Forked from
ISPConfig / ISPConfig 3
4879 commits behind the upstream repository.
-
RKolodziejczxyk authored
Define bash as a parser, some systems can have "dash" as a "sh" that will end with errors. # /usr/local/ispconfig/server/cron_daily.sh [: 10: root: unexpected operator [: 10: root: unexpected operator
RKolodziejczxyk authoredDefine bash as a parser, some systems can have "dash" as a "sh" that will end with errors. # /usr/local/ispconfig/server/cron_daily.sh [: 10: root: unexpected operator [: 10: root: unexpected operator
cron.sh 547 B
#!/bin/bash
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
if [ -f /usr/local/ispconfig/server/lib/php.ini ]; then
PHPINIOWNER=`stat -c %U /usr/local/ispconfig/server/lib/php.ini`
if [ $PHPINIOWNER == 'root' ] || [ $PHPINIOWNER == 'ispconfig' ]; then
export PHPRC=/usr/local/ispconfig/server/lib
fi
fi
cd /usr/local/ispconfig/server
/usr/bin/php -q \
-d disable_classes= \
-d disable_functions= \
-d open_basedir= \
/usr/local/ispconfig/server/cron.php