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_rpaf-0_5-1~10 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fapache1-mod_rpaf.git;a=commitdiff_plain;h=3df1e034639f43ee964a7d9e9f42f9480e1805dc - 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_rpaf.spec -> 1.5 --- diff --git a/apache1-mod_rpaf.spec b/apache1-mod_rpaf.spec index 3bfcaf7..d797f0c 100644 --- a/apache1-mod_rpaf.spec +++ b/apache1-mod_rpaf.spec @@ -6,7 +6,7 @@ Summary: Apache module: record traffic statistics into a database Summary(pl): Modu³ Apache'a: zapisywanie statystyk ruchu do bazy danych Name: apache1-mod_%{mod_name} Version: 0.5 -Release: 0.12 +Release: 0.13 License: Apache Group: Networking/Daemons Source0: http://stderr.net/apache/rpaf/download/mod_%{mod_name}-%{version}.tar.gz @@ -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