diff options
author | Jodok Batlogg <batlogg@gentoo.org> | 2004-09-18 16:01:22 +0000 |
---|---|---|
committer | Jodok Batlogg <batlogg@gentoo.org> | 2004-09-18 16:01:22 +0000 |
commit | 8d3fca4d1b45adfc912c8882c89e56edcaecdbb9 (patch) | |
tree | 2a1ace256757ed9e70a8c414a27b190405fb42fa /eclass | |
parent | Stable on sparc. (Manifest recommit) (diff) | |
download | gentoo-2-8d3fca4d1b45adfc912c8882c89e56edcaecdbb9.tar.gz gentoo-2-8d3fca4d1b45adfc912c8882c89e56edcaecdbb9.tar.bz2 gentoo-2-8d3fca4d1b45adfc912c8882c89e56edcaecdbb9.zip |
permissions of the products dir are set like a lib, owned by root
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/zproduct.eclass | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/eclass/zproduct.eclass b/eclass/zproduct.eclass index 0174bf7fe770..10b4f25db345 100644 --- a/eclass/zproduct.eclass +++ b/eclass/zproduct.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/zproduct.eclass,v 1.12 2004/06/25 00:39:48 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/zproduct.eclass,v 1.13 2004/09/18 16:01:22 batlogg Exp $ # Author: Jason Shoemaker <kutsuya@gentoo.org> # This eclass is designed to streamline the construction of @@ -92,7 +92,15 @@ zproduct_pkg_postinst() #*Use zprod-update to install this zproduct to the default zinstance. debug-print-function ${FUNCNAME} ${*} - chown -R zope:root ${ZP_DIR}/${PF} + + # this is a shared directory, so root should be owner; + # zprod-manager or whatever is used to copy products into the + # instances has to take care of setting the right permissions in + # the target directory + + chown -R root:root ${ZP_DIR}/${PF} + # make shure there is nothing writable in the new dir + chmod -R go-w ${ZP_DIR}/${PF} einfo ">>> Installing ${PF} into the \"$(zope-config --zidef-get)\" zinstance..." ${ROOT}/usr/sbin/zprod-manager add ${ZP_DIR}/${PF} } |