From 068d08577d97258267917f81363a1a033a681803 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Dec 04 2020 00:46:43 +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