Skip to content

Commit ac39761

Browse files
authored
Merge pull request #754 from linuxserver/swag-crowdsec-errors
2 parents cc15540 + 40662d2 commit ac39761

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
@@ -32,6 +32,11 @@ if [[ -z ${CROWDSEC_VERSION+x} ]]; then \
3232
CROWDSEC_VERSION=$(curl -s "https://api.github.com/repos/crowdsecurity/cs-nginx-bouncer/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]');
3333
fi
3434

35+
if [[ -z ${CROWDSEC_VERSION+x} ]]; then \
36+
echo "**** Could not fetch current bouncer version from Github ****"
37+
exit 1
38+
fi
39+
3540
curl "${CURL_NOISE_LEVEL}" -Lo \
3641
/tmp/crowdsec.tar.gz -L \
3742
"https://github.com/crowdsecurity/cs-nginx-bouncer/releases/download/${CROWDSEC_VERSION}/crowdsec-nginx-bouncer.tgz"

0 commit comments

Comments
 (0)