[packages/apache/feat/conf-modules: 50/52] partial update triggers for new paths
glen
glen at pld-linux.org
Mon Jan 29 10:08:30 CET 2018
commit 784656fe46d6c5c44b0d4d35a38cf80cbe32ae2e
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat May 2 20:36:24 2015 +0300
partial update triggers for new paths
apache.spec | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/apache.spec b/apache.spec
index eae7c1b..1010296 100644
--- a/apache.spec
+++ b/apache.spec
@@ -2945,13 +2945,13 @@ rm -rf $RPM_BUILD_ROOT
%useradd -u 51 -r -d /home/services/httpd -s /bin/false -c "HTTP User" -g http http
%pretrans base
-# handle $HTTPD_MPM from sysconfig
+# upgrade to 2.4: handle $HTTPD_MPM from sysconfig
if [ -f /etc/sysconfig/httpd ]; then
MPM=$(grep ^HTTPD_MPM /etc/sysconfig/httpd | sed 's,HTTPD_MPM=,,;s,",,g')
if [ -n "$MPM" ]; then
- 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 -f /etc/httpd/conf.d/10_mpm.conf.rpmnew /etc/httpd/conf.d/10_mpm.conf
+ echo "LoadModule mpm_${MPM}_module modules/mod_mpm_${MPM}.so" > /etc/httpd/conf.modules.d/00-mpm.conf.rpmnew
+ cat /etc/httpd/conf.modules.d/00-mpm.conf >> /etc/httpd/conf.modules.d/00-mpm.conf.rpmnew
+ mv -bf /etc/httpd/conf.modules.d/00-mpm.conf{.rpmnew,}
sed -i -e 's,HTTPD_MPM.*,,g' /etc/sysconfig/httpd
fi
fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/apache.git/commitdiff/ed9e6b2216e9b701461ecb12e9c5fadce8c92abb
More information about the pld-cvs-commit
mailing list