mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-29 03:33:19 -04:00
Abort if bouncer version can't be fetched.
This commit is contained in:
@@ -32,6 +32,11 @@ if [[ -z ${CROWDSEC_VERSION+x} ]]; then \
|
||||
CROWDSEC_VERSION=$(curl -s "https://api.github.com/repos/crowdsecurity/cs-nginx-bouncer/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]');
|
||||
fi
|
||||
|
||||
if [[ -z ${CROWDSEC_VERSION+x} ]]; then \
|
||||
echo "**** Could not fetch current bouncer version from Github ****"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
curl "${CURL_NOISE_LEVEL}" -Lo \
|
||||
/tmp/crowdsec.tar.gz -L \
|
||||
"https://github.com/crowdsecurity/cs-nginx-bouncer/releases/download/${CROWDSEC_VERSION}/crowdsec-nginx-bouncer.tgz"
|
||||
|
||||
Reference in New Issue
Block a user