[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

--force-confnew does not behave as expected

I modified /etc/init.d/apache2 in apache2.2-common (see following patch) and then ran

$ sudo apt-get -o Dpkg::Options::="--force-confnew" install --reinstall apache2.2-common

According to my understanding of the documentation, /etc/init.d/apache2 should be reverted to its original form in the package, per the --force-confnew flag, but this does not happen. It seems unlikely that this is a bug, and it seems more likely I am misunderstanding the documentation and not using the right command, so I'm writing to ask for clarification. Please CC me on any reply. Thanks.

                                                         Regards, Faheem

--- apache2~    2011-01-01 21:57:08.000000000 +0000
+++ apache2     2011-05-05 12:59:21.000000000 +0000
@@ -8,7 +8,7 @@
 # X-Interactive:     true
 # Short-Description: Start/stop apache2 web server
+sh .
 set -e

 if [ -n "$APACHE_CONFDIR" ] ; then

Reply to: