crowdsec/debian/postrm

8 lines
237 B
Plaintext
Raw Normal View History

2021-08-18 11:57:06 +00:00
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
2021-08-18 11:57:06 +00:00
fi