]> TLD Linux GIT Repositories - packages/apache.git/commitdiff
- pretrans maybe? :)
authorBartosz Świątek <shadzik@tld-linux.org>
Fri, 24 Feb 2012 17:09:54 +0000 (18:09 +0100)
committerBartosz Świątek <shadzik@tld-linux.org>
Fri, 24 Feb 2012 17:09:54 +0000 (18:09 +0100)
apache.spec

index 23e530bf2fe22128cf34e1a8d5dd23b522fa0278..c7e0457f14403a3a116d68d18dee091e9711c2a1 100644 (file)
@@ -2481,13 +2481,15 @@ Please report bugs to <http://bugs.pld-linux.org/>.
 
 EOF
 
-%triggerpostun base -- %{name} < 2.4.0
+%pretrans base -- %{name} < 2.4.0
 if [ -f /etc/sysconfig/httpd ]; then
        MPM=$(grep HTTPD_MPM /etc/sysconfig/httpd |sed 's,HTTPD_MPM=,,;s,",,g')
        echo "LoadModule mpm_${MPM}_module                modules/mod_mpm_${MPM}.so" > /etc/httpd/conf.d/10_mpm.conf.rpmnew
        cat /etc/httpd/conf.d/10_mpm.conf >> /etc/httpd/conf.d/10_mpm.conf.rpmnew
        mv /etc/httpd/conf.d/10_mpm.conf.rpmnew /etc/httpd/conf.d/10_mpm.conf
 fi
+
+%triggerpostun base -- %{name} < 2.4.0
 %banner -e %{name} << EOF
 WARNING!!!
 Since apache-2.4 mod_authn_alias has been obsoleted.