[Pkg-nagios-devel] Bug#518884: nagios3-common: remove is broken
Glenn English
ghe at slsware.com
Mon Mar 9 01:31:49 UTC 2009
Package: nagios3-common
Severity: important
Tags: patch
The bug in the nagios3-common remove is a missing "then" in the first if
statement. Here's the corrected file:
#!/bin/sh -e
. /usr/share/nagios3/debian/httpd.webapps-common
apacheconf="/etc/nagios3/apache2.conf"
if [ -f $apacheconf ]
then
case "$1" in
remove)
# find the configured servers
configured_servers=`wc_httpd_apache_configured $apacheconf nagios3`
if [ "$configured_servers" ]; then
# deconfigure them
wc_httpd_apache_uninclude $apacheconf nagios3 $configured_servers
# 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
# Automatically added by dh_installinit
if [ -x "/etc/init.d/nagios3" ]; then
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d nagios3 stop || exit $?
else
/etc/init.d/nagios3 stop || exit $?
fi
fi
# End automatically added section
-- System Information:
Debian Release: 5.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
More information about the Pkg-nagios-devel
mailing list