Remove f2b logrotate if service is disabled. Sanity check tarball.

This commit is contained in:
TheSpad
2023-02-12 12:31:21 +00:00
parent 3892ce009c
commit 5c921503cd
3 changed files with 12 additions and 0 deletions
@@ -32,6 +32,11 @@ curl -so \
mkdir -p /tmp/crowdsec
if ! tar -tzf /crowdsec.tar.gz >/dev/null 2>&1; then
echo "**** Invalid tarball, could not download crowdsec bouncer ****"
exit 1
fi
tar xf \
/tmp/crowdsec.tar.gz -C \
/tmp/crowdsec --strip-components=1