parent
2b7e3ff1e7
commit
33383faf9e
2
debian/postrm
vendored
2
debian/postrm
vendored
|
@ -1,7 +1,7 @@
|
||||||
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 [[ -d /etc/cron.daily/ ]] && [[ -f /etc/cron.daily/crowdsec-hub ]]; then
|
if [ -d "/etc/cron.daily/" ] && [ -f "/etc/cron.daily/crowdsec-hub" ]; then
|
||||||
rm /etc/cron.daily/crowdsec-hub
|
rm /etc/cron.daily/crowdsec-hub
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -228,7 +228,7 @@ if [ $1 == 0 ]; then
|
||||||
rm -rf /etc/crowdsec/hub
|
rm -rf /etc/crowdsec/hub
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -d /etc/cron.daily/ ]] && [[ -f /etc/cron.daily/crowdsec-hub ]]; then
|
if [ -d "/etc/cron.daily/" ] && [ -f "/etc/cron.daily/crowdsec-hub" ]; then
|
||||||
rm /etc/cron.daily/crowdsec-hub
|
rm /etc/cron.daily/crowdsec-hub
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue