mirror of
https://git.icinga.com/packaging/rpm-icingaweb2.git
synced 2025-07-30 17:34:13 +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
|
||||
|
||||
if [ -x /usr/sbin/apachectl ]; then
|
||||
apache_command="apachectl start"
|
||||
if [ -x /usr/sbin/httpd ]; then
|
||||
sudo httpd -t
|
||||
sudo httpd -k start
|
||||
elif [ -x /usr/sbin/apache2 ]; then
|
||||
sudo apache2 -t
|
||||
sudo apache2 -k start
|
||||
else
|
||||
echo "Can not detect how to start Apache!" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Starting Apache httpd..."
|
||||
if ! sudo $apache_command; then
|
||||
echo "Failed to start httpd..." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
sleep 5
|
||||
|
||||
output=`mktemp`
|
||||
|
Loading…
x
Reference in New Issue
Block a user