[Pkg-nagios-changes] [SCM] Debian packaging for Nagios3 branch, master, updated. 3.2.3-1-11-g5dce773
Alexander Wirt
formorer at debian.org
Sat Feb 12 10:01:51 UTC 2011
The following commit has been merged in the master branch:
commit ac6c5d870d3f8e49a8d7b537646173eedef0868c
Author: Alexander Wirt <formorer at debian.org>
Date: Sat Feb 12 10:43:35 2011 +0100
only deconfigure configed servers
diff --git a/debian/nagios3-cgi.postinst b/debian/nagios3-cgi.postinst
index 6a333aa..f8ecde6 100644
--- a/debian/nagios3-cgi.postinst
+++ b/debian/nagios3-cgi.postinst
@@ -82,11 +82,14 @@ case "$1" in
fi
if [ "$unwanted_servers" ]; then
- if wc_httpd_apache_uninclude $apacheconf nagios3 $unwanted_servers; then
- # reload the selected servers if they are running
- running_servers="$(wc_httpd_running $unwanted_servers)"
- if [ "$running_servers" ]; then
- wc_httpd_invoke "reload" $running_servers
+ servers_to_deconf="$(wc_httpd_apache_configured $apacheconf nagios3 $unwanted_servers)"
+ if [ "$servers_to_deconf" ]; then
+ if wc_httpd_apache_uninclude $apacheconf nagios3 $servers_to_deconf; then
+ # reload the selected servers if they are running
+ running_servers="$(wc_httpd_running $unwanted_servers)"
+ if [ "$running_servers" ]; then
+ wc_httpd_invoke "reload" $running_servers
+ fi
fi
fi
fi
--
Debian packaging for Nagios3
More information about the Pkg-nagios-changes
mailing list