[Pkg-nagios-devel] Bug#301105: nagios-common: fails to install for apache if caudmium is installed too
browaeys.alban@wanadoo.fr, 301105@bugs.debian.org
browaeys.alban@wanadoo.fr, 301105@bugs.debian.org
Wed, 23 Mar 2005 21:25:44 +0100
--9jxsPFA5p3P2qPhR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Package: nagios-common
Version: 2:1.3-cvs.20050116-4
Severity: important
Tags: patch
Setting up nagios-common (1.3-cvs.20050116-4) ...
Reloading web server config...done.
Usage: htpasswd [-c] passwordfile username
The -c flag creates a new file.
dpkg: error processing nagios-common (--configure):
subprocess post-installation script returned error exit status 1
this was due to the caudmium htpasswd test:
case "$webserver" in
Apache) webservers="apache";;
Apache2) webservers="apache2" ;
htpasswd="/usr/bin/htpasswd2";;
Apache-SSL) webservers="apache-ssl";;
Both) webservers="apache apache-ssl";;
*) webservers="";;
esac
if [ -e "/usr/bin/htpasswd-caudium" ]; then
htpasswd="/usr/bin/htpasswd-caudium"
fi
the patch attached fix this by checking if $webserver="" before
overridding with the caudium one.
Thanks for managing all the alternative the hard way. I hope the
webserver policy (and adhoc debhelpers) will be ready for etch.
Web apps are widespread now. (dbconfig-common is in sid yeah !D )
Cheers
Alban
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-rc5
Locale: LANG=fr_FR.UTF-8@euro, LC_CTYPE=fr_FR.UTF-8@euro (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Versions of packages nagios-common depends on:
ii adduser 3.63 Add and remove users and groups
ii apache [httpd] 1.3.33-4 versatile, high-performance HTTP s
ii apache2-mpm-pref 2.0.53-5 traditional model for Apache2
ii caudium [httpd] 2:1.2.35-1 An extensible WWW server written i
ii coreutils [fileu 5.2.1-2 The GNU core utilities
ii debconf [debconf 1.4.46 Debian configuration management sy
ii fileutils 5.2.1-2 The GNU file management utilities
ii mailx 1:8.1.2-0.20040524cvs-4 A simple mail user agent
ii mzscheme [httpd] 1:209-3 PLT Scheme Interpreter
ii nagios-plugins 1.4-3 Plugins for the nagios network mon
ii nagios-text [nag 2:1.3-cvs.20050116-4 A host/service/network monitoring
-- debconf information:
* nagios/wwwsuid: true
* nagios/configapache: Apache
nagios/upgradefromnetsaint:
--9jxsPFA5p3P2qPhR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="nagios-common_caudmiumfix.patch"
--- nagios-common.postinst.orig 2005-03-23 21:17:32.000000000 +0100
+++ nagios-common.postinst 2005-03-23 21:20:03.000000000 +0100
@@ -95,7 +95,7 @@
*) webservers="";;
esac
- if [ -e "/usr/bin/htpasswd-caudium" ]; then
+ if [ -e "/usr/bin/htpasswd-caudium" -a -z "$webservers" ]; then
htpasswd="/usr/bin/htpasswd-caudium"
fi
--9jxsPFA5p3P2qPhR--