Bug#304191: apache-common: apache-modconf with higher Debconf priority if no arguments
Package: apache-common
Version: 1.3.33-4
Severity: wishlist
Tags: patch
The /etc/apache/modules.conf file tells:
# To update it, run the command:
# /usr/sbin/apache-modconf apache
But it is not true if default priority (medium) is set for Debconf.
The `apache-modconf apache' does nothing!
I think it would be better to set higher Debconf priority if apache-modconf
is run without additional arguments.
My patch:
--- apache-modconf.orig 2005-02-08 04:31:11 +0100
+++ apache-modconf 2005-04-11 16:57:35 +0200
@@ -330,6 +330,7 @@
CMD=
ASKRESTART=true
QUEUECHANGES=false
+PRI=low
if [ "$2" ]; then
if [ "$2" != "enable" ] && [ "$2" != "disable" ] && [ "$2" != "internal" ] && [ "$2" != "query" ]; then
go_out command
@@ -358,6 +359,8 @@
fi
;;
esac
+else
+ PRI=medium
fi
### time to do some real work ####
@@ -387,7 +390,7 @@
db_fset apache-shared/debconf-modules seen true
fi
-db_input low apache-shared/debconf-modules || true
+db_input $PRI apache-shared/debconf-modules || true
if [ "$QUIET" != "true" ]; then
db_go || true
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (900, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-686
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)
Versions of packages apache-common depends on:
ii apache2-utils 2.0.53-5 utility programs for webservers
ii debconf 1.4.48 Debian configuration management sy
ii elinks [www-browser] 0.10.2-2 advanced text-mode WWW browser
ii emacs20 [www-browser] 20.7-13.3 The GNU Emacs editor.
ii konqueror [www-browser] 4:3.3.2-1 KDE's advanced File Manager, Web B
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libdb4.2 4.2.52-18 Berkeley v4.2 Database Libraries [
ii libexpat1 1.95.8-1 XML parsing C library - runtime li
ii links [www-browser] 0.99+1.00pre12-1 Character mode WWW browser
ii links2 [www-browser] 2.1pre16-1 Web browser running in both graphi
ii lynx [www-browser] 2.8.5-2 Text-mode WWW Browser
ii mime-support 3.31-1 MIME files 'mime.types' & 'mailcap
ii mozilla-browser [www-br 2:1.7.6-1 The Mozilla Internet application s
ii mozilla-firefox [www-br 1.0.2-3 lightweight web browser based on M
ii navigator-smotif-477 [w 4.77-2 Netscape Navigator 4.77 (static Mo
ii opera [www-browser] 7.54-20040803.5 The Opera Web Browser
ii perl 5.8.4-8 Larry Wall's Practical Extraction
ii sed 4.1.4-2 The GNU sed stream editor
ii ucf 1.17 Update Configuration File: preserv
ii w3m [www-browser] 0.5.1-3 WWW browsable pager with excellent
-- debconf information excluded
Reply to: