mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-09-04 13:15:04 +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}"
|
log "Using previously downloaded jar at ${SERVER}"
|
||||||
else
|
else
|
||||||
log "Downloading custom server jar from ${CUSTOM_SERVER} ..."
|
log "Downloading custom server jar from ${CUSTOM_SERVER} ..."
|
||||||
if ! curl -sSL -o "${SERVER}" "${CUSTOM_SERVER}"; then
|
if ! curl -fsSL -o "${SERVER}" "${CUSTOM_SERVER}"; then
|
||||||
log "Failed to download from ${CUSTOM_SERVER}"
|
logError "Failed to download from ${CUSTOM_SERVER}"
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user