Merge pull request #581 from linuxserver/swag-crowdsec-f2bupdate

This commit is contained in:
Adam 2023-02-12 13:10:06 +00:00 committed by GitHub
commit 96b240488f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View File

@ -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
@ -93,6 +98,7 @@ rm -rf \
if [[ $CROWDSEC_F2B_DISABLE == "true" ]]; then
echo "**** Disabling fail2ban Service ****"
touch /etc/services.d/fail2ban/down
rm -rf /etc/logrotate.d/fail2ban
fi
echo "**** Successfully configured CrowdSec nginx Bouncer ${CROWDSEC_VERSION} ****"

View File

@ -5,4 +5,5 @@
if [[ ${CROWDSEC_F2B_DISABLE,,} == "true" ]]; then
echo "**** Disabling fail2ban Service ****"
s6-svc -d /run/service/svc-fail2ban
rm -rf /etc/logrotate.d/fail2ban
fi

View File

@ -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