diff options
author | Patrick Lauer <patrick@gentoo.org> | 2012-03-29 15:35:04 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2012-03-29 15:35:04 +0000 |
commit | 6f34cec7bfd0f1c91a92404664f35bce7cca6977 (patch) | |
tree | 4646fc87f07caf194986f0cfcff9dddafa374783 /eclass/apache-2.eclass | |
parent | Stable for HPPA (bug #408727). (diff) | |
download | historical-6f34cec7bfd0f1c91a92404664f35bce7cca6977.tar.gz historical-6f34cec7bfd0f1c91a92404664f35bce7cca6977.tar.bz2 historical-6f34cec7bfd0f1c91a92404664f35bce7cca6977.zip |
Sanitizing directory permissions #398899
Diffstat (limited to 'eclass/apache-2.eclass')
-rw-r--r-- | eclass/apache-2.eclass | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/eclass/apache-2.eclass b/eclass/apache-2.eclass index 74110bacc03b..570a61850a8f 100644 --- a/eclass/apache-2.eclass +++ b/eclass/apache-2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/apache-2.eclass,v 1.27 2012/03/05 08:20:52 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/apache-2.eclass,v 1.28 2012/03/29 15:35:04 patrick Exp $ # @ECLASS: apache-2.eclass # @MAINTAINER: @@ -539,7 +539,7 @@ apache-2_src_install() { for i in /var/lib/dav /var/log/apache2 /var/cache/apache2 ; do keepdir ${i} fowners apache:apache ${i} - fperms 0755 ${i} + fperms 0750 ${i} done } @@ -550,6 +550,12 @@ apache-2_src_install() { # because the default webroot is a copy of the files that exist elsewhere and we # don't want them to be managed/removed by portage when apache is upgraded. apache-2_pkg_postinst() { + # fix previously wrong set permissions Bug#398899 + einfo "Sanitizing directory permissions ..." + for i in /var/lib/dav /var/log/apache2 /var/cache/apache2 ; do + chmod 0750 ${i} + done + if use ssl && [[ ! -e "${ROOT}/etc/ssl/apache2/server.pem" ]]; then SSL_ORGANIZATION="${SSL_ORGANIZATION:-Apache HTTP Server}" install_cert /etc/ssl/apache2/server |