Don't run through mod setup on restart

This commit is contained in:
thespad 2024-09-11 19:59:09 +01:00
parent b18f1cc120
commit 3fe3f420f6
No known key found for this signature in database

View File

@ -5,6 +5,11 @@ CONFIG_PATH="/config/crowdsec/"
LIB_PATH="/usr/local/lua/crowdsec/"
DATA_PATH="/var/lib/crowdsec/lua/"
if [[ ! -e "/crowdsec-nginx-bouncer.tgz" ]]; then
# Crowdsec bouncer already configured
exit 0
fi
echo "**** Configuring CrowdSec nginx Bouncer ****"
# If API keys are missing, disable mod and exit