mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-11-22 06:34:21 +00:00
This reverts commit d36bece851.
This commit is contained in:
1 parent
5e20684b2b
commit
144e5c2a93
1 file changed
+6
-1
@@ -42,7 +42,7 @@ downloadModpack() {
|
|||||||
srv_modpack=${FTB_SERVER_MOD}
|
srv_modpack=${FTB_SERVER_MOD}
|
||||||
if isURL "${srv_modpack}"; then
|
if isURL "${srv_modpack}"; then
|
||||||
log "Downloading modpack from ${srv_modpack}..."
|
log "Downloading modpack from ${srv_modpack}..."
|
||||||
if ! srv_modpack=$(get -o /data --output-filename --skip-existing --accept=application/zip "${srv_modpack}"); then
|
if ! srv_modpack=$(get -o /data --output-filename --skip-existing "${srv_modpack}"); then
|
||||||
log "ERROR: failed to download modpack"
|
log "ERROR: failed to download modpack"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -59,6 +59,11 @@ downloadModpack() {
|
|||||||
log "FTB server modpack ${srv_modpack} not found."
|
log "FTB server modpack ${srv_modpack} not found."
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
if [[ ! "${srv_modpack: -4}" == ".zip" ]]; then
|
||||||
|
log "FTB server modpack ${srv_modpack} is not a zip archive."
|
||||||
|
log "Please set FTB_SERVER_MOD to a file with a .zip extension."
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
FTB_SERVER_MOD=${srv_modpack}
|
FTB_SERVER_MOD=${srv_modpack}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user