diff options
author | Sam James (sam_c) <sam@cmpct.info> | 2020-05-02 12:42:18 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2020-05-02 12:43:31 +0200 |
commit | 7a7c56dde3c36b43b1453af0c5365f866a8db5e4 (patch) | |
tree | af05f963eed7d44a6dea8962f33fc95258a2f9c8 /net-misc/chrony | |
parent | net-misc/chrony: fix live ebuild (diff) | |
download | gentoo-7a7c56dde3c36b43b1453af0c5365f866a8db5e4.tar.gz gentoo-7a7c56dde3c36b43b1453af0c5365f866a8db5e4.tar.bz2 gentoo-7a7c56dde3c36b43b1453af0c5365f866a8db5e4.zip |
net-misc/chrony: don't show elog when not needed
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'net-misc/chrony')
-rw-r--r-- | net-misc/chrony/chrony-3.5-r4.ebuild | 2 | ||||
-rw-r--r-- | net-misc/chrony/chrony-4.0_pre2-r1.ebuild | 2 | ||||
-rw-r--r-- | net-misc/chrony/chrony-9999.ebuild | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/net-misc/chrony/chrony-3.5-r4.ebuild b/net-misc/chrony/chrony-3.5-r4.ebuild index a7a99b957db4..fa28cf690097 100644 --- a/net-misc/chrony/chrony-3.5-r4.ebuild +++ b/net-misc/chrony/chrony-3.5-r4.ebuild @@ -164,7 +164,7 @@ pkg_preinst() { pkg_postinst() { tmpfiles_process chronyd.conf - if use caps && ! ${HAD_CAPS}; then + if [[ -n ${REPLACING_VERSIONS} ]] && use caps && ! ${HAD_CAPS}; then ewarn "Please adjust permissions on ${EROOT}/var/{lib,log}/chrony to be owned by ntp:ntp" ewarn "e.g. chown -R ntp:ntp ${EROOT}/var/{lib,log}/chrony" ewarn "This is necessary for chrony to drop privileges" diff --git a/net-misc/chrony/chrony-4.0_pre2-r1.ebuild b/net-misc/chrony/chrony-4.0_pre2-r1.ebuild index 322eeb924944..0338e59678bc 100644 --- a/net-misc/chrony/chrony-4.0_pre2-r1.ebuild +++ b/net-misc/chrony/chrony-4.0_pre2-r1.ebuild @@ -190,7 +190,7 @@ pkg_preinst() { pkg_postinst() { tmpfiles_process chronyd.conf - if use caps && ! ${HAD_CAPS}; then + if [[ -n ${REPLACING_VERSIONS} ]] && use caps && ! ${HAD_CAPS}; then ewarn "Please adjust permissions on ${EROOT}/var/{lib,log}/chrony to be owned by ntp:ntp" ewarn "e.g. chown -R ntp:ntp ${EROOT}/var/{lib,log}/chrony" ewarn "This is necessary for chrony to drop privileges" diff --git a/net-misc/chrony/chrony-9999.ebuild b/net-misc/chrony/chrony-9999.ebuild index 322eeb924944..0338e59678bc 100644 --- a/net-misc/chrony/chrony-9999.ebuild +++ b/net-misc/chrony/chrony-9999.ebuild @@ -190,7 +190,7 @@ pkg_preinst() { pkg_postinst() { tmpfiles_process chronyd.conf - if use caps && ! ${HAD_CAPS}; then + if [[ -n ${REPLACING_VERSIONS} ]] && use caps && ! ${HAD_CAPS}; then ewarn "Please adjust permissions on ${EROOT}/var/{lib,log}/chrony to be owned by ntp:ntp" ewarn "e.g. chown -R ntp:ntp ${EROOT}/var/{lib,log}/chrony" ewarn "This is necessary for chrony to drop privileges" |