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-Url: http://git.pld-linux.org/cgi-bin/gitweb.cgi?p=packages%2Fapache1-mod_security.git;a=commitdiff_plain;h=c171442d2fe5dccfdd897b60bc0832d8daa5a937 - 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_security.spec -> 1.6 --- diff --git a/apache1-mod_security.spec b/apache1-mod_security.spec index 23de05e..cdbd775 100644 --- a/apache1-mod_security.spec +++ b/apache1-mod_security.spec @@ -4,7 +4,7 @@ Summary: Apache module: securing web applications Summary(pl): Modu³ do apache: ochrona aplikacji WWW Name: apache1-mod_%{mod_name} Version: 1.8.6 -Release: 0.3 +Release: 0.4 License: GPL v2 Group: Networking/Daemons Source0: http://www.modsecurity.org/download/mod_security-%{version}.tar.gz @@ -52,7 +52,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