docker-minecraft-server/minecraft-server/start-deployVanilla

12 lines
455 B
Text
Raw Normal View History

2017-11-01 05:42:44 +00:00
#!/bin/bash
export SERVER="minecraft_server.$VANILLA_VERSION.jar"
if [ ! -e $SERVER ]; then
echo "Downloading $SERVER ..."
2018-06-26 00:13:47 +00:00
curl -sSL -o $SERVER $(curl -s $(curl -s 'https://launchermeta.mojang.com/mc/game/version_manifest.json' | jq --arg VANILLA_VERSION "$VANILLA_VERSION" --raw-output '[.versions[]|select(.id == $VANILLA_VERSION)][0].url') | jq --raw-output '.downloads.server.url')
2017-11-01 05:42:44 +00:00
fi
# Continue to Final Setup
exec /start-finalSetup01World $@