From 420ee41fe4a94b6d6bc1c73305a1cf657a483804 Mon Sep 17 00:00:00 2001 From: Tobias Klausmann Date: Sun, 29 May 2016 18:25:16 +0200 Subject: [PATCH] net-misc/chrony: Fix logrotate script Since grep -v may return a non-zero exit status even in the benign case, we need to just return 0 manually. Actual errors will still be reported normally since any output will trigger mail sending. Package-Manager: portage-2.3.0_rc1 --- .../{chrony-2.4_pre1-r1.ebuild => chrony-2.4_pre1-r2.ebuild} | 2 +- .../files/{chrony-2.4.logrotate => chrony-2.4-r1.logrotate} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename net-misc/chrony/{chrony-2.4_pre1-r1.ebuild => chrony-2.4_pre1-r2.ebuild} (98%) rename net-misc/chrony/files/{chrony-2.4.logrotate => chrony-2.4-r1.logrotate} (56%) diff --git a/net-misc/chrony/chrony-2.4_pre1-r1.ebuild b/net-misc/chrony/chrony-2.4_pre1-r2.ebuild similarity index 98% rename from net-misc/chrony/chrony-2.4_pre1-r1.ebuild rename to net-misc/chrony/chrony-2.4_pre1-r2.ebuild index 7d20e2029988..4f9b613e1c1e 100644 --- a/net-misc/chrony/chrony-2.4_pre1-r1.ebuild +++ b/net-misc/chrony/chrony-2.4_pre1-r2.ebuild @@ -111,7 +111,7 @@ src_install() { keepdir /var/{lib,log}/chrony insinto /etc/logrotate.d - newins "${FILESDIR}"/chrony-2.4.logrotate chrony + newins "${FILESDIR}"/chrony-2.4-r1.logrotate chrony systemd_newunit "${FILESDIR}"/chronyd.service-r2 chronyd.service systemd_enable_ntpunit 50-chrony chronyd.service diff --git a/net-misc/chrony/files/chrony-2.4.logrotate b/net-misc/chrony/files/chrony-2.4-r1.logrotate similarity index 56% rename from net-misc/chrony/files/chrony-2.4.logrotate rename to net-misc/chrony/files/chrony-2.4-r1.logrotate index d1ae72b6e7a1..4140bc2af8b2 100644 --- a/net-misc/chrony/files/chrony-2.4.logrotate +++ b/net-misc/chrony/files/chrony-2.4-r1.logrotate @@ -2,6 +2,6 @@ missingok sharedscripts postrotate - /usr/bin/chronyc cyclelogs |grep -v '^200 OK' + /usr/bin/chronyc cyclelogs |grep -v '^200 OK'; return 0 endscript } -- 2.26.2