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

Luk Claes luk at alioth.debian.org
Sat Jan 24 16:35:28 UTC 2009


tags 512882 pending
thanks

Author: luk
Date: 2009-01-24 16:35:28 +0000 (Sat, 24 Jan 2009)
New Revision: 1606

Modified:
   nagios3/trunk/debian/changelog
   nagios3/trunk/debian/nagios3-common.prerm
Log:
Don't fail if $apacheconf doesn't exist while removing (Closes: #512882)

Modified: nagios3/trunk/debian/changelog
===================================================================
--- nagios3/trunk/debian/changelog	2009-01-07 11:30:52 UTC (rev 1605)
+++ nagios3/trunk/debian/changelog	2009-01-24 16:35:28 UTC (rev 1606)
@@ -1,10 +1,14 @@
 nagios3 (3.0.6-3) unstable; urgency=low
 
+  [ Alexander Wirt ]
   * Don't mention conf.d directories for external command checks (Closes: #431953) 
   * Don't ship obsolete extcommands_nagios3.cfg 
 
- -- Alexander Wirt <formorer at debian.org>  Wed, 07 Jan 2009 11:40:14 +0100
+  [ Luk Claes ]
+  * Don't fail if $apacheconf doesn't exist while removing (Closes: #512882)
 
+ -- Luk Claes <luk at debian.org>  Sat, 24 Jan 2009 17:34:31 +0100
+
 nagios3 (3.0.6-2) unstable; urgency=low
 
   * Fix forced single servicechecks  

Modified: nagios3/trunk/debian/nagios3-common.prerm
===================================================================
--- nagios3/trunk/debian/nagios3-common.prerm	2009-01-07 11:30:52 UTC (rev 1605)
+++ nagios3/trunk/debian/nagios3-common.prerm	2009-01-24 16:35:28 UTC (rev 1606)
@@ -4,8 +4,9 @@
 
 apacheconf="/etc/nagios3/apache2.conf"
 
-case "$1" in
-  remove)
+if [ -f $apacheconf ]
+  case "$1" in
+    remove)
 	# find the configured servers
 	configured_servers=`wc_httpd_apache_configured $apacheconf nagios3`
 	if [ "$configured_servers" ]; then
@@ -17,7 +18,8 @@
 			wc_httpd_invoke "reload" $running_servers
 		fi
 	fi
-    ;;
-esac
+      ;;
+  esac
+fi
 
 #DEBHELPER#




More information about the Pkg-nagios-changes mailing list