mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
mc: support the Install.sh step of CurseForge modpacks within TYPE=FTB
fixes #180
This commit is contained in:
parent
a95bfdb192
commit
c8cc882a57
@ -39,7 +39,6 @@ if [[ $PROXY ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
export SERVER_PROPERTIES=/data/server.properties
|
export SERVER_PROPERTIES=/data/server.properties
|
||||||
export FTB_DIR=/data/FeedTheBeast
|
|
||||||
export VERSIONS_JSON=https://launchermeta.mojang.com/mc/game/version_manifest.json
|
export VERSIONS_JSON=https://launchermeta.mojang.com/mc/game/version_manifest.json
|
||||||
|
|
||||||
echo "Checking version information."
|
echo "Checking version information."
|
||||||
|
@ -2,8 +2,9 @@
|
|||||||
|
|
||||||
. /start-utils
|
. /start-utils
|
||||||
|
|
||||||
|
export FTB_DIR=/data/FeedTheBeast
|
||||||
legacyJavaFixerUrl=http://ftb.cursecdn.com/FTB2/maven/net/minecraftforge/lex/legacyjavafixer/1.0/legacyjavafixer-1.0.jar
|
legacyJavaFixerUrl=http://ftb.cursecdn.com/FTB2/maven/net/minecraftforge/lex/legacyjavafixer/1.0/legacyjavafixer-1.0.jar
|
||||||
legacyJavaFixerPath=/data/FeedTheBeast/mods/legacyjavafixer.jar
|
legacyJavaFixerPath=${FTB_DIR}/mods/legacyjavafixer.jar
|
||||||
export TYPE=FEED-THE-BEAST
|
export TYPE=FEED-THE-BEAST
|
||||||
|
|
||||||
echo "Looking for Feed-The-Beast server modpack."
|
echo "Looking for Feed-The-Beast server modpack."
|
||||||
@ -68,5 +69,15 @@ if isTrue ${FTB_LEGACYJAVAFIXER} && [ ! -e ${legacyJavaFixerPath} ]; then
|
|||||||
curl -sSL -o ${legacyJavaFixerPath} ${legacyJavaFixerUrl}
|
curl -sSL -o ${legacyJavaFixerPath} ${legacyJavaFixerUrl}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -e ${FTB_DIR}/FTBInstall.sh ]; then
|
||||||
|
pushd ${FTB_DIR}
|
||||||
|
sh ${FTB_DIR}/FTBInstall.sh
|
||||||
|
popd
|
||||||
|
elif [ -e ${FTB_DIR}/Install.sh ]; then
|
||||||
|
pushd ${FTB_DIR}
|
||||||
|
sh ${FTB_DIR}/Install.sh
|
||||||
|
popd
|
||||||
|
fi
|
||||||
|
|
||||||
# Continue to Final Setup
|
# Continue to Final Setup
|
||||||
exec /start-finalSetup01World $@
|
exec /start-finalSetup01World $@
|
||||||
|
Loading…
Reference in New Issue
Block a user