cron.sh 551 Bytes
Newer Older
RKolodziejczxyk's avatar
RKolodziejczxyk committed
1
#!/bin/bash
2 3 4 5 6 7 8 9 10 11

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

12
cd /usr/local/ispconfig/server
Ederson Mora's avatar
Ederson Mora committed
13
$(which php) -q \
14 15 16 17
    -d disable_classes= \
    -d disable_functions= \
    -d open_basedir= \
    /usr/local/ispconfig/server/cron.php
Ederson Mora's avatar
Ederson Mora committed
18