mc: support the Install.sh step of CurseForge modpacks within TYPE=FTB

fixes #180
This commit is contained in:
Geoff Bourne 2018-07-13 22:33:55 -05:00
parent a95bfdb192
commit c8cc882a57
2 changed files with 12 additions and 2 deletions

View File

@ -39,7 +39,6 @@ if [[ $PROXY ]]; then
fi
export SERVER_PROPERTIES=/data/server.properties
export FTB_DIR=/data/FeedTheBeast
export VERSIONS_JSON=https://launchermeta.mojang.com/mc/game/version_manifest.json
echo "Checking version information."

View File

@ -2,8 +2,9 @@
. /start-utils
export FTB_DIR=/data/FeedTheBeast
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
echo "Looking for Feed-The-Beast server modpack."
@ -68,5 +69,15 @@ if isTrue ${FTB_LEGACYJAVAFIXER} && [ ! -e ${legacyJavaFixerPath} ]; then
curl -sSL -o ${legacyJavaFixerPath} ${legacyJavaFixerUrl}
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
exec /start-finalSetup01World $@