diff options
author | Jan Kaluza <jkaluza@redhat.com> | 2014-08-14 19:41:29 +0200 |
---|---|---|
committer | Jan Kaluza <jkaluza@redhat.com> | 2014-08-14 19:41:29 +0200 |
commit | bb13a678b7fa1a8c92fd68bc7b571922a74eced4 (patch) | |
tree | 11dcf84b89fc116c7f0defb649163f1514d3a222 /httpd.spec | |
parent | 572a5df9ee47a39d346a4f6b7cd76f6a8804d63f (diff) | |
download | httpd-bb13a678b7fa1a8c92fd68bc7b571922a74eced4.tar.gz httpd-bb13a678b7fa1a8c92fd68bc7b571922a74eced4.tar.xz httpd-bb13a678b7fa1a8c92fd68bc7b571922a74eced4.zip |
fix creating apache user in pre script (#1128328)
Diffstat (limited to 'httpd.spec')
-rw-r--r-- | httpd.spec | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -14,7 +14,7 @@ Summary: Apache HTTP Server Name: httpd Version: 2.4.9 -Release: 8%{?dist} +Release: 9%{?dist} URL: http://httpd.apache.org/ Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2 Source1: index.html @@ -447,6 +447,11 @@ rm -vf \ rm -rf $RPM_BUILD_ROOT/etc/httpd/conf/{original,extra} +%pre +# Add the "apache" user +/usr/sbin/useradd -c "Apache" -u 48 \ + -s /sbin/nologin -r -d %{contentdir} apache 2> /dev/null || : + %pre filesystem # Add the "apache" user /usr/sbin/useradd -c "Apache" -u 48 \ @@ -647,6 +652,9 @@ rm -rf $RPM_BUILD_ROOT %{_rpmconfigdir}/macros.d/macros.httpd %changelog +* Thu Aug 14 2014 Jan Kaluza <jkaluza@redhat.com> - 2.4.9-9 +- fix creating apache user in pre script (#1128328) + * Tue Jul 08 2014 Jan Kaluza <jkaluza@redhat.com> - 2.4.9-8 - add support for systemd socket activation (#1111648) |