tags 374665 patch
severity 374665 important
thanks
Andrei Emeltchenko <[EMAIL PROTECTED]> wrote:
> Package: dwww
> Version: 1.10.0
> Followup-For: Bug #374665
>
> dwww did change configuration
> (through /etc/apache2/conf.d/dwww)
>
> but didn't restart http server which was
> the reason of the problem.
I think this is an important bug, because it means that the package has
hardly any functionality before the web server is restarted. If my
patch to the RC bug ends up in an NMU, I'll include this patch:
diff --exclude=es.po -Nur dwww-1.10.0.old/debian/dwww.postinst
dwww-1.10.0/debian/dwww.postinst
--- dwww-1.10.0.old/debian/dwww.postinst 2006-05-07 20:30:09.000000000
+0200
+++ dwww-1.10.0/debian/dwww.postinst 2006-12-28 16:21:59.000000000 +0100
@@ -57,6 +57,11 @@
my $confd="/etc/$apache/conf.d";
symlink ("../../dwww/apache.conf", "$confd/dwww") if
(-d "$confd" && ! -e "$confd/dwww");
}
+ # restart apache2 if it is installed and configured
+ if (system("apache2ctl configtest 2>/dev/null") == 0) {
+ system("invoke-rc.d apache2 force-reload");
+ }
+
}
if ( -x "/etc/cron.daily/dwww" )
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)