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
### END INIT INFO
-
+sh .
set -e
if [ -n "$APACHE_CONFDIR" ] ; then
05-05-2011, 02:10 PM
Raphael Hertzog
--force-confnew does not behave as expected
Hi,
On Thu, 05 May 2011, Faheem Mitha wrote:
> 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.
You are misunderstanding the doc indeed, and you should have asked on
debian-user@lists.debian.org, not here.
The flag only matters when the package tries to install a new version of
the configuration file, but here you're re-installing the same package
and thus there's no new version of the config file compared to the
previous installation.
You also need --force-confask to force dpkg to re-try installing the file.
Cheers,
--
Raphaël Hertzog ◈ Debian Developer
Follow my Debian News â–¶ http://RaphaelHertzog.com (English)
▶ http://RaphaelHertzog.fr (Français)
--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110505141006.GB29070@rivendell.home.ouaza.com">h ttp://lists.debian.org/20110505141006.GB29070@rivendell.home.ouaza.com
05-05-2011, 02:10 PM
Raphael Hertzog
--force-confnew does not behave as expected
Hi,
On Thu, 05 May 2011, Faheem Mitha wrote:
> 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.
You are misunderstanding the doc indeed, and you should have asked on
debian-user@lists.debian.org, not here.
The flag only matters when the package tries to install a new version of
the configuration file, but here you're re-installing the same package
and thus there's no new version of the config file compared to the
previous installation.
You also need --force-confask to force dpkg to re-try installing the file.
Cheers,
--
Raphaël Hertzog ◈ Debian Developer
Follow my Debian News â–¶ http://RaphaelHertzog.com (English)
▶ http://RaphaelHertzog.fr (Français)
--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110505141006.GB29070@rivendell.home.ouaza.com">h ttp://lists.debian.org/20110505141006.GB29070@rivendell.home.ouaza.com