[Pkg-nagios-changes] [pkg-nagios] r1622 - nagios3/trunk/debian

Alexander Wirt formorer at alioth.debian.org
Thu Mar 12 06:03:00 UTC 2009


Author: formorer
Date: 2009-03-12 06:02:59 +0000 (Thu, 12 Mar 2009)
New Revision: 1622

Modified:
   nagios3/trunk/debian/nagios3-common.postinst
Log:
Do not fail if include file was deleted

Modified: nagios3/trunk/debian/nagios3-common.postinst
===================================================================
--- nagios3/trunk/debian/nagios3-common.postinst	2009-03-12 05:24:22 UTC (rev 1621)
+++ nagios3/trunk/debian/nagios3-common.postinst	2009-03-12 06:02:59 UTC (rev 1622)
@@ -74,12 +74,13 @@
 
 	# configure the web servers, if it is desired
 	if [ "$servers" ]; then
-		wc_httpd_apache_include $apacheconf nagios3 $servers
-		# reload the selected servers if they are running 
-		running_servers="$(wc_httpd_running $servers)"
-		if [ "$running_servers" ]; then
-			wc_httpd_invoke "reload" $running_servers
-		fi
+		if wc_httpd_apache_include $apacheconf nagios3 $servers; then
+			# reload the selected servers if they are running 
+			running_servers="$(wc_httpd_running $servers)"
+			if [ "$running_servers" ]; then
+				wc_httpd_invoke "reload" $running_servers
+			fi
+		fi	
 	fi
 
 




More information about the Pkg-nagios-changes mailing list