Skip to content

Commit

Permalink
Adding /etc/mime.types to httpd.
Browse files Browse the repository at this point in the history
Change-Id: Id94de5654e5eb2ad9f037270e0fcb52435825b78
Reviewed-on: http://photon-jenkins.eng.vmware.com/170
Tested-by: jenkins-photon <[email protected]>
Reviewed-by: Sharath George
  • Loading branch information
sjohngeorge authored and Sharath George committed Nov 24, 2015
1 parent 12a09f4 commit 9ba5007
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion SPECS/httpd/httpd.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Summary: The Apache HTTP Server
Name: httpd
Version: 2.4.12
Release: 3%{?dist}
Release: 4%{?dist}
License: Apache License 2.0
URL: http://httpd.apache.org/
Group: Applications/System
Expand Down Expand Up @@ -101,6 +101,12 @@ if ! getent passwd apache >/dev/null; then
-s /bin/false -u 25 apache
fi

if [ -h /etc/mime.types ]; then
mv /etc/mime.types /etc/mime.types.orig
fi

ln -sf /etc/httpd/conf/mime.types /etc/mime.types

%postun
/sbin/ldconfig
if getent passwd apache >/dev/null; then
Expand All @@ -110,6 +116,10 @@ if getent group apache >/dev/null; then
groupdel apache
fi

if [ -f /etc/mime.types.orig ]; then
mv /etc/mime.types.orig /etc/mime.types
fi

%files devel
%defattr(-,root,root)
%{_includedir}/*
Expand Down Expand Up @@ -140,6 +150,8 @@ fi
%{_bindir}/dbmmanage

%changelog
* Mon Nov 23 2015 Sharath George <[email protected]> 2.4.12-4
- Add /etc/mime.types
* Tue Sep 29 2015 Xiaolin Li <[email protected]> 2.4.12-3
- Move perl script to tools package.
* Thu Jul 16 2015 Touseef Liaqat <[email protected]> 2.4.12-2
Expand Down

0 comments on commit 9ba5007

Please sign in to comment.