Skip to content

Commit

Permalink
clean up hub dir on rpm remove (#1205)
Browse files Browse the repository at this point in the history
Co-authored-by: sabban <[email protected]>
  • Loading branch information
sabban and sabban committed Jan 24, 2022
1 parent dbde90d commit 715c32e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rpm/SPECS/crowdsec.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 715c32e

Please sign in to comment.