From: Elan Ruusamäe Date: Fri, 14 Apr 2006 17:07:56 +0000 (+0000) Subject: - restart apache in %postun rather in %preun as the config file, loading module X-Git-Tag: AC-STABLE~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fapache-mod_security.git;a=commitdiff_plain;h=fb84a28b7059701a3de89056b921cd0a938a4ce6 - 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: apache-mod_security.spec -> 1.16 --- diff --git a/apache-mod_security.spec b/apache-mod_security.spec index f16da11..e91007d 100644 --- a/apache-mod_security.spec +++ b/apache-mod_security.spec @@ -50,7 +50,7 @@ rm -rf $RPM_BUILD_ROOT %post %service -q httpd restart -%preun +%postun if [ "$1" = "0" ]; then %service -q httpd restart fi