File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
root/etc/s6-overlay/s6-rc.d/init-mod-swag-crowdsec Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ CONFIG_PATH="/config/crowdsec/"
55LIB_PATH="/usr/local/lua/crowdsec/"
66DATA_PATH="/var/lib/crowdsec/lua/"
77
8+ if [[ ${DOCKER_MODS_DEBUG,,} = "true" ]]; then
9+ CURL_NOISE_LEVEL="-v"
10+ else
11+ CURL_NOISE_LEVEL="--silent"
12+ fi
13+
814echo "**** Configuring CrowdSec nginx Bouncer ****"
915
1016# If API keys are missing, disable mod and exit
@@ -23,10 +29,10 @@ echo "\
2329
2430# Download nginx bouncer
2531if [[ -z ${CROWDSEC_VERSION+x} ]]; then \
26- CROWDSEC_VERSION=$(curl -sX GET "https://api.github.com/repos/crowdsecurity/cs-nginx-bouncer/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]');
32+ CROWDSEC_VERSION=$(curl -s "https://api.github.com/repos/crowdsecurity/cs-nginx-bouncer/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]');
2733fi
2834
29- curl -so \
35+ curl "${CURL_NOISE_LEVEL}" -Lo \
3036 /tmp/crowdsec.tar.gz -L \
3137 "https://github.com/crowdsecurity/cs-nginx-bouncer/releases/download/${CROWDSEC_VERSION}/crowdsec-nginx-bouncer.tgz"
3238
You can’t perform that action at this time.
0 commit comments