mc: handle FTB style start script within CurseForge subdirs

mc: upgrade mc-server-runner to launch start scripts via bash
This commit is contained in:
Geoff Bourne
2018-08-12 17:25:16 -05:00
parent 7005f00df0
commit d9c2f26506
5 changed files with 44 additions and 24 deletions

View File

@@ -84,9 +84,7 @@ if [[ ${TYPE} == "FEED-THE-BEAST" ]]; then
cp -f /data/white-list.txt ${FTB_DIR}/
fi
if [ ! -e ${FTB_DIR}/eula.txt ]; then
cp -f /data/eula.txt ${FTB_DIR}/
fi
cp -f /data/eula.txt ${FTB_DIR}/
cat > ${FTB_DIR}/settings-local.sh <<EOF
export MIN_RAM="${INIT_MEMORY}"
@@ -94,7 +92,7 @@ export MAX_RAM="${MAX_MEMORY}"
EOF
cd ${FTB_DIR}
echo "Running FTB server modpack start ..."
echo "Running FTB ${FTB_SERVER_START} in ${FTB_DIR} ..."
exec mc-server-runner ${FTB_SERVER_START}
else
# If we have a bootstrap.txt file... feed that in to the server stdin