From 7637c8ea512eee99273f37a0b76171af415f6a8e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 16 Feb 2005 17:52:15 +0000 Subject: [PATCH] - 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_bandwidth.spec -> 1.13 --- apache1-mod_bandwidth.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apache1-mod_bandwidth.spec b/apache1-mod_bandwidth.spec index 37ace45..76db5d3 100644 --- a/apache1-mod_bandwidth.spec +++ b/apache1-mod_bandwidth.spec @@ -4,7 +4,7 @@ Summary: Apache module: bandwidth limits Summary(pl): Modu³ do Apache: limity pasma Name: apache1-mod_%{mod_name} Version: 2.0.5 -Release: 1.3 +Release: 1.4 License: Apache Group: Networking/Daemons Source0: ftp://ftp.cohprog.com/pub/apache/module/1.3.0/mod_bandwidth.c @@ -65,7 +65,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 -- 2.44.0