crowdsec/debian/postrm
Laurence Jones 24b540ecde
Cronjob via packages (#1820)
* Final version
2022-10-18 16:11:48 +01:00

8 lines
237 B
Plaintext

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