ports/security/crowdsec/files/pkg-deinstall.in
Marco b927d496c1 security/crowdsec{-firewall-bouncer}: handle pkg upgrade
- avoid flushing the firewall rules upon install by using pf anchors
- restart service after upgrade if it was running before

PR:	261304
MFH:	2022Q1
2022-02-06 17:28:28 +01:00

9 lines
182 B
Bash

#!/bin/sh
case $2 in
"DEINSTALL")
service crowdsec status && touch /var/run/crowdsec.running
service crowdsec stop || :
;;
esac