server.sh 581 Bytes
Newer Older
1
#!/bin/sh
tbrehm's avatar
tbrehm committed
2 3 4

PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin

5 6
. /etc/profile

7 8
umask 022

9 10 11 12 13 14 15
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

16 17
cd /usr/local/ispconfig/server
/usr/bin/php -q /usr/local/ispconfig/server/server.php
Till Brehm's avatar
Till Brehm committed
18 19 20

cd /usr/local/ispconfig/security
/usr/bin/php -q /usr/local/ispconfig/security/check.php