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_become-1_3-2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fapache1-mod_become.git;a=commitdiff_plain;h=f765b1ee724774965b19eeddededdbba8c29399e - 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_become.spec -> 1.7 --- diff --git a/apache1-mod_become.spec b/apache1-mod_become.spec index 53cfcad..8406d77 100644 --- a/apache1-mod_become.spec +++ b/apache1-mod_become.spec @@ -60,7 +60,7 @@ rm -rf $RPM_BUILD_ROOT echo "mod_%{mod_name}: This module is not turned on by default; if you're sure," echo "mod_%{mod_name}: uncomment the appropriate line in Apache's config file." -%preun +%postun if [ "$1" = "0" ]; then if [ -f /var/lock/subsys/apache ]; then /etc/rc.d/init.d/apache restart 1>&2