diff options
author | Eldad Zack <eldad@gentoo.org> | 2004-07-04 19:55:26 +0000 |
---|---|---|
committer | Eldad Zack <eldad@gentoo.org> | 2004-07-04 19:55:26 +0000 |
commit | 7a1384bcac6934cde77da0575d5b14b5f6423736 (patch) | |
tree | bac6fc0a1a0a11b85036bf4dae0ae3ac40f951ce /net-analyzer/nagios-core/nagios-core-1.1-r6.ebuild | |
parent | Add sparc patches (diff) | |
download | historical-7a1384bcac6934cde77da0575d5b14b5f6423736.tar.gz historical-7a1384bcac6934cde77da0575d5b14b5f6423736.tar.bz2 historical-7a1384bcac6934cde77da0575d5b14b5f6423736.zip |
fix chown /var/nagios/rw, closes #51939
Diffstat (limited to 'net-analyzer/nagios-core/nagios-core-1.1-r6.ebuild')
-rw-r--r-- | net-analyzer/nagios-core/nagios-core-1.1-r6.ebuild | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/net-analyzer/nagios-core/nagios-core-1.1-r6.ebuild b/net-analyzer/nagios-core/nagios-core-1.1-r6.ebuild index 10aef3aa128b..8d6105da176a 100644 --- a/net-analyzer/nagios-core/nagios-core-1.1-r6.ebuild +++ b/net-analyzer/nagios-core/nagios-core-1.1-r6.ebuild @@ -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/net-analyzer/nagios-core/nagios-core-1.1-r6.ebuild,v 1.10 2004/07/03 09:06:26 eldad Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-core/nagios-core-1.1-r6.ebuild,v 1.11 2004/07/04 19:55:26 eldad Exp $ inherit eutils @@ -162,7 +162,11 @@ pkg_preinst() { keepdir /var/nagios/archives chown -R nagios:nagios ${D}/var/nagios || die "Failed Chown of ${D}/var/nagios" keepdir /var/nagios/rw - chown nagios:apache ${D}/var/nagios/rw || die "Failed Chown of ${D}/var/nagios/rw" + if use noweb; then + chown nagios:nagios ${D}/var/nagios/rw || die "Failed Chown of ${D}/var/nagios/rw" + else + chown nagios:apache ${D}/var/nagios/rw || die "Failed Chown of ${D}/var/nagios/rw" + fi } pkg_postinst() { |