mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-09-04 05:05:03 +00:00
Fail closed when CUSTOM_SERVER download returns an HTTP error (#4258)
Co-authored-by: LCB <me@lbellows.com>
This commit is contained in:
@@ -16,8 +16,8 @@ if isURL "${CUSTOM_SERVER}"; then
|
||||
log "Using previously downloaded jar at ${SERVER}"
|
||||
else
|
||||
log "Downloading custom server jar from ${CUSTOM_SERVER} ..."
|
||||
if ! curl -sSL -o "${SERVER}" "${CUSTOM_SERVER}"; then
|
||||
log "Failed to download from ${CUSTOM_SERVER}"
|
||||
if ! curl -fsSL -o "${SERVER}" "${CUSTOM_SERVER}"; then
|
||||
logError "Failed to download from ${CUSTOM_SERVER}"
|
||||
exit 2
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user