Skip to content

Commit 3fe3f42

Browse files
committed
Don't run through mod setup on restart
1 parent b18f1cc commit 3fe3f42

File tree

1 file changed

+5
-0
lines changed
  • root/etc/s6-overlay/s6-rc.d/init-mod-swag-crowdsec

1 file changed

+5
-0
lines changed

root/etc/s6-overlay/s6-rc.d/init-mod-swag-crowdsec/run

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ CONFIG_PATH="/config/crowdsec/"
55
LIB_PATH="/usr/local/lua/crowdsec/"
66
DATA_PATH="/var/lib/crowdsec/lua/"
77

8+
if [[ ! -e "/crowdsec-nginx-bouncer.tgz" ]]; then
9+
# Crowdsec bouncer already configured
10+
exit 0
11+
fi
12+
813
echo "**** Configuring CrowdSec nginx Bouncer ****"
914

1015
# If API keys are missing, disable mod and exit

0 commit comments

Comments
 (0)