From ac6e0c1b89bd652bd4dbe86d06e16ba3575e7d7d Mon Sep 17 00:00:00 2001 From: Laurence Jones Date: Thu, 20 Oct 2022 16:43:34 +0100 Subject: [PATCH] fix cron removal (#1829) --- debian/postrm | 3 --- rpm/SPECS/crowdsec.spec | 4 ---- 2 files changed, 7 deletions(-) diff --git a/debian/postrm b/debian/postrm index fc68f31db..61a95eed2 100644 --- a/debian/postrm +++ b/debian/postrm @@ -1,7 +1,4 @@ if [ "$1" = "purge" ]; then find /etc/crowdsec -maxdepth 1 -mindepth 1 | grep -v "bouncer" | xargs rm -rf || echo "" rm -rf /var/lib/crowdsec - if [ -f "/etc/cron.daily/crowdsec" ]; then - rm /etc/cron.daily/crowdsec - fi fi diff --git a/rpm/SPECS/crowdsec.spec b/rpm/SPECS/crowdsec.spec index 8ad3732e8..fb6ab4e3c 100644 --- a/rpm/SPECS/crowdsec.spec +++ b/rpm/SPECS/crowdsec.spec @@ -230,10 +230,6 @@ if [ $1 == 0 ]; then rm -rf /etc/crowdsec/hub fi -if [ -f "/etc/cron.daily/crowdsec-hub" ]; then - rm /etc/cron.daily/crowdsec -fi - #systemctl stop crowdsec || echo "crowdsec was not started" %changelog