From 469274fafaac2a34463c3fe0d056f8111b97e614 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Dec 03 2020 21:57:01 +0000 Subject: Enable the ccache sweep systemd timer The associated service doesn't need to be enabled. Enabling the timer is suffient for it to execute. It requires the timers service so will be ready automatically to run on the configured period. https://pagure.io/freeipa/issue/8589 Signed-off-by: Rob Crittenden Reviewed-By: Alexander Bokovoy Reviewed-By: Francois Cami --- diff --git a/freeipa.spec.in b/freeipa.spec.in index 5d5b919..c0c82be 100755 --- a/freeipa.spec.in +++ b/freeipa.spec.in @@ -1067,6 +1067,11 @@ if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then /bin/systemctl restart ipa.service >/dev/null fi + + /bin/systemctl is-enabled ipa-ccache-sweep.timer >/dev/null 2>&1 + if [ $? -eq 1 ]; then + /bin/systemctl enable ipa-ccache-sweep.timer>/dev/null + fi fi # END