From: Elan Ruusamäe Date: Wed, 16 Feb 2005 17:52:15 +0000 (+0000) Subject: - restart apache in %postun rather in %preun as the config file, loading module X-Git-Tag: auto/ac/apache1-mod_dynvhost-1-3 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fapache1-mod_dynvhost.git;a=commitdiff_plain;h=00b77afcb082187897b375593bca966087147f3c - restart apache in %postun rather in %preun as the config file, loading module is still there and module will be loaded after package is uninstalled, which later causes missing configuration file errors. Changed files: apache1-mod_dynvhost.spec -> 1.19 --- diff --git a/apache1-mod_dynvhost.spec b/apache1-mod_dynvhost.spec index 543a40e..8ed669a 100644 --- a/apache1-mod_dynvhost.spec +++ b/apache1-mod_dynvhost.spec @@ -55,7 +55,7 @@ if [ -f /var/lock/subsys/apache ]; then /etc/rc.d/init.d/apache restart 1>&2 fi -%preun +%postun if [ "$1" = "0" ]; then if [ -f /var/lock/subsys/apache ]; then /etc/rc.d/init.d/apache restart 1>&2