summaryrefslogtreecommitdiffstats
path: root/httpd.spec
diff options
context:
space:
mode:
authorJoe Orton <jorton@redhat.com>2016-03-18 10:18:52 +0000
committerJoe Orton <jorton@redhat.com>2016-03-18 10:18:52 +0000
commit0f2de0f53c81e88f27749d3ca75bd9ac589cafb2 (patch)
tree24b3190cb7c9ea7910b3e56424f6dc6182e1d0c2 /httpd.spec
parent1a66c1a6ddaf287bfcf037619197b7aaf4de35d2 (diff)
downloadhttpd-0f2de0f53c81e88f27749d3ca75bd9ac589cafb2.tar.gz
httpd-0f2de0f53c81e88f27749d3ca75bd9ac589cafb2.tar.xz
httpd-0f2de0f53c81e88f27749d3ca75bd9ac589cafb2.zip
remove httpd pre script (duplicate of httpd-filesystem's)
- in httpd-filesystem pre script, create group/user iff non-existent
Diffstat (limited to 'httpd.spec')
-rw-r--r--httpd.spec19
1 files changed, 10 insertions, 9 deletions
diff --git a/httpd.spec b/httpd.spec
index f02883e..981bc99 100644
--- a/httpd.spec
+++ b/httpd.spec
@@ -8,7 +8,7 @@
Summary: Apache HTTP Server
Name: httpd
Version: 2.4.18
-Release: 2%{?dist}
+Release: 3%{?dist}
URL: http://httpd.apache.org/
Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2
Source1: index.html
@@ -461,15 +461,12 @@ 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 \
- -s /sbin/nologin -r -d %{contentdir} apache 2> /dev/null || :
+getent group apache >/dev/null || groupadd -g 48 -r apache
+getent passwd apache >/dev/null || \
+ useradd -r -u 48 -g apache -s /sbin/nologin \
+ -d %{contentdir} -c "Apache" apache
+exit 0
%post
%systemd_post httpd.service htcacheclean.service httpd.socket
@@ -675,6 +672,10 @@ rm -rf $RPM_BUILD_ROOT
%{_rpmconfigdir}/macros.d/macros.httpd
%changelog
+* Fri Mar 18 2016 Joe Orton <jorton@redhat.com> - 2.4.18-3
+- remove httpd pre script (duplicate of httpd-filesystem's)
+- in httpd-filesystem pre script, create group/user iff non-existent
+
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.18-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild