mirror of
https://git.icinga.com/packaging/rpm-icingaweb2.git
synced 2025-07-31 01:44:06 +02:00
icingaweb2: Update test script to start apache everywhere
This commit is contained in:
parent
ee7a9c669f
commit
e1560e35c3
@ -3,19 +3,17 @@
|
|||||||
|
|
||||||
install_package icingaweb2
|
install_package icingaweb2
|
||||||
|
|
||||||
if [ -x /usr/sbin/apachectl ]; then
|
if [ -x /usr/sbin/httpd ]; then
|
||||||
apache_command="apachectl start"
|
sudo httpd -t
|
||||||
|
sudo httpd -k start
|
||||||
|
elif [ -x /usr/sbin/apache2 ]; then
|
||||||
|
sudo apache2 -t
|
||||||
|
sudo apache2 -k start
|
||||||
else
|
else
|
||||||
echo "Can not detect how to start Apache!" >&2
|
echo "Can not detect how to start Apache!" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Starting Apache httpd..."
|
|
||||||
if ! sudo $apache_command; then
|
|
||||||
echo "Failed to start httpd..." >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
||||||
output=`mktemp`
|
output=`mktemp`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user