nagios4/debian/nagios4-cgi.prerm

26 lines
618 B
Plaintext
Raw Normal View History

2014-10-05 11:53:19 +02:00
#!/bin/sh -e
2017-05-20 00:00:42 +02:00
. /usr/share/nagios4/debian/httpd.webapps-common
2014-10-05 11:53:19 +02:00
2017-05-20 00:00:42 +02:00
apacheconf="/etc/nagios4/apache2.conf"
2014-10-05 11:53:19 +02:00
if [ -f $apacheconf ]; then
case "$1" in
remove)
# find the configured servers
2017-05-20 00:00:42 +02:00
configured_servers=`wc_httpd_apache_configured $apacheconf nagios4`
2014-10-05 11:53:19 +02:00
if [ "$configured_servers" ]; then
# deconfigure them
2017-05-20 00:00:42 +02:00
wc_httpd_apache_uninclude $apacheconf nagios4 $configured_servers
2014-10-05 11:53:19 +02:00
# reload the configured servers if they are running
running_servers="`wc_httpd_running $configured_servers`"
if [ "$running_servers" ]; then
wc_httpd_invoke "reload" $running_servers
fi
fi
;;
esac
fi
#DEBHELPER#