démarrage au choix de apache ou de apache-ssl; selon ce qui est présent.

This commit is contained in:
fpeters 2003-10-14 22:04:41 +00:00
parent 1ba7abc3b0
commit 8a4c1b5c28
1 changed files with 7 additions and 2 deletions

View File

@ -37,9 +37,14 @@ do
done
echo "Starting Apache server..."
apache -f `pwd`/root-tests/etc/apache/httpd.conf
if [ -e /usr/sbin/apache ]
then
/usr/sbin/apache -f `pwd`/root-tests/etc/apache/httpd.conf
elif [ -e /usr/sbin/apache-ssl ]
/usr/sbin/apache-ssl -f `pwd`/root-tests/etc/apache/httpd.conf
fi
(cd tmp-tests && python ./tests.py)
root-tests/usr/local/sbin/glasnost-tests-ctl stop
kill `cat root-tests/var/run/apache.pid`
kill `cat root-tests/var/run/apache.pid` || /bin/true