From 3b687e3ada30a24d0609d0e8950ef5d8781c6d2c Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 25 Aug 2020 15:59:13 +0200 Subject: [PATCH] drop old migration code from scriptlet --- chrony.spec | 8 -------- 1 file changed, 8 deletions(-) diff --git a/chrony.spec b/chrony.spec index c585c2d..c3580fa 100644 --- a/chrony.spec +++ b/chrony.spec @@ -165,14 +165,6 @@ getent passwd chrony > /dev/null || /usr/sbin/useradd -r -g chrony \ : %post -# fix PIDFile in local chronyd.service on upgrades from chrony < 3.3-2 -if grep -q 'PIDFile=%{_localstatedir}/run/chronyd.pid' \ - %{_sysconfdir}/systemd/system/chronyd.service 2> /dev/null && \ - ! grep -qi '^[ '$'\t'']*pidfile' %{_sysconfdir}/chrony.conf 2> /dev/null -then - sed -i '/PIDFile=/s|/run/|/run/chrony/|' \ - %{_sysconfdir}/systemd/system/chronyd.service -fi # workaround for late reload of unit file (#1614751) %{_bindir}/systemctl daemon-reload # migrate from chrony-helper to sourcedir directive