clean up hub dir on rpm remove (#1205)
Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
This commit is contained in:
parent
dbde90d24c
commit
715c32ef9c
1 changed files with 4 additions and 0 deletions
|
@ -208,6 +208,10 @@ fi
|
|||
|
||||
%systemd_postun_with_restart %{name}.service
|
||||
|
||||
if [ $1 == 0 ]; then
|
||||
rm -rf /etc/crowdsec/hub
|
||||
fi
|
||||
|
||||
#systemctl stop crowdsec || echo "crowdsec was not started"
|
||||
|
||||
%changelog
|
||||
|
|
Loading…
Reference in a new issue