fix cron removal (#1829)
This commit is contained in:
parent
c1334b9a8b
commit
ac6e0c1b89
2 changed files with 0 additions and 7 deletions
3
debian/postrm
vendored
3
debian/postrm
vendored
|
@ -1,7 +1,4 @@
|
||||||
if [ "$1" = "purge" ]; then
|
if [ "$1" = "purge" ]; then
|
||||||
find /etc/crowdsec -maxdepth 1 -mindepth 1 | grep -v "bouncer" | xargs rm -rf || echo ""
|
find /etc/crowdsec -maxdepth 1 -mindepth 1 | grep -v "bouncer" | xargs rm -rf || echo ""
|
||||||
rm -rf /var/lib/crowdsec
|
rm -rf /var/lib/crowdsec
|
||||||
if [ -f "/etc/cron.daily/crowdsec" ]; then
|
|
||||||
rm /etc/cron.daily/crowdsec
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -230,10 +230,6 @@ if [ $1 == 0 ]; then
|
||||||
rm -rf /etc/crowdsec/hub
|
rm -rf /etc/crowdsec/hub
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "/etc/cron.daily/crowdsec-hub" ]; then
|
|
||||||
rm /etc/cron.daily/crowdsec
|
|
||||||
fi
|
|
||||||
|
|
||||||
#systemctl stop crowdsec || echo "crowdsec was not started"
|
#systemctl stop crowdsec || echo "crowdsec was not started"
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
Loading…
Reference in a new issue