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-Url: http://git.pld-linux.org/?p=packages%2Fapache-mod_dosevasive.git;a=commitdiff_plain;h=33bdd6f6574636cf3cb534d8f33da5ca0c8d9989 - 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_dosevasive.spec -> 1.21 --- diff --git a/apache-mod_dosevasive.spec b/apache-mod_dosevasive.spec index 7470ff9..680ade1 100644 --- a/apache-mod_dosevasive.spec +++ b/apache-mod_dosevasive.spec @@ -61,7 +61,7 @@ rm -rf $RPM_BUILD_ROOT %post %service -q httpd restart -%preun +%postun if [ "$1" = "0" ]; then %service -q httpd restart fi