Package: nagios3-common
Version: 3.0.6-3
Severity: normal

Trying to purge nagios3 from my system, I encountered this message:

  Removing nagios3-common ...
  /var/lib/dpkg/info/nagios3-common.prerm: line 23: syntax error near
  unexpected token `fi'
  dpkg: error processing nagios3-common (--remove):
   subprocess pre-removal script returned error exit status 2

Simple enough, the line in question (in 'nagios3-common.prerm') is
syntactically wrong.  I attached a unified diff fixing the problem.

-- System Information:
Debian Release: 5.0
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_GB.utf8)
Shell: /bin/sh linked to /bin/bash
--- nagios3-common.prerm.old    2009-02-22 23:22:24.000000000 +0100
+++ nagios3-common.prerm        2009-02-22 21:32:57.000000000 +0100
@@ -4,7 +4,7 @@
 
 apacheconf="/etc/nagios3/apache2.conf"
 
-if [ -f $apacheconf ]
+if [ -f $apacheconf ]; then
   case "$1" in
     remove)
        # find the configured servers

Reply via email to