remove httpd pre script (duplicate of httpd-filesystem's)
- in httpd-filesystem pre script, create group/user iff non-existent
This commit is contained in:
parent
1a66c1a6dd
commit
0f2de0f53c
19
httpd.spec
19
httpd.spec
@ -8,7 +8,7 @@
|
|||||||
Summary: Apache HTTP Server
|
Summary: Apache HTTP Server
|
||||||
Name: httpd
|
Name: httpd
|
||||||
Version: 2.4.18
|
Version: 2.4.18
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
URL: http://httpd.apache.org/
|
URL: http://httpd.apache.org/
|
||||||
Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2
|
Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2
|
||||||
Source1: index.html
|
Source1: index.html
|
||||||
@ -461,15 +461,12 @@ rm -vf \
|
|||||||
|
|
||||||
rm -rf $RPM_BUILD_ROOT/etc/httpd/conf/{original,extra}
|
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
|
%pre filesystem
|
||||||
# Add the "apache" user
|
getent group apache >/dev/null || groupadd -g 48 -r apache
|
||||||
/usr/sbin/useradd -c "Apache" -u 48 \
|
getent passwd apache >/dev/null || \
|
||||||
-s /sbin/nologin -r -d %{contentdir} apache 2> /dev/null || :
|
useradd -r -u 48 -g apache -s /sbin/nologin \
|
||||||
|
-d %{contentdir} -c "Apache" apache
|
||||||
|
exit 0
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%systemd_post httpd.service htcacheclean.service httpd.socket
|
%systemd_post httpd.service htcacheclean.service httpd.socket
|
||||||
@ -675,6 +672,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_rpmconfigdir}/macros.d/macros.httpd
|
%{_rpmconfigdir}/macros.d/macros.httpd
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.18-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user