2021-08-18 11:57:06 +00:00
|
|
|
if [ "$1" = "remove" ]; then
|
2023-12-13 14:43:46 +00:00
|
|
|
cscli dashboard remove -f -y --error || echo "Ignore the above error if you never installed the local dashboard."
|
2021-08-18 11:57:06 +00:00
|
|
|
systemctl stop crowdsec
|
|
|
|
systemctl disable crowdsec
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$1" = "upgrade" ]; then
|
|
|
|
systemctl stop crowdsec
|
|
|
|
fi
|