[httpd: 1/2] fix creating apache user in pre script (#1128328)
Jan Kaluža
jkaluza at fedoraproject.org
Thu Aug 14 17:45:15 UTC 2014
commit bb13a678b7fa1a8c92fd68bc7b571922a74eced4
Author: Jan Kaluza <jkaluza at redhat.com>
Date: Thu Aug 14 19:41:29 2014 +0200
fix creating apache user in pre script (#1128328)
httpd.spec | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/httpd.spec b/httpd.spec
index 92d845e..58a9144 100644
--- a/httpd.spec
+++ b/httpd.spec
@@ -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 at redhat.com> - 2.4.9-9
+- fix creating apache user in pre script (#1128328)
+
* Tue Jul 08 2014 Jan Kaluza <jkaluza at redhat.com> - 2.4.9-8
- add support for systemd socket activation (#1111648)
More information about the scm-commits
mailing list