From 36f5857de3a8032750e658a24b057f5832c835aa Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sun, 10 Mar 2019 21:50:42 -0500 Subject: [PATCH] mc: create FTB/CF server start script when absent Fixes #294 --- minecraft-server/start-deployFTB | 16 ++++++++++++++-- minecraft-server/start-minecraftFinalSetup | 2 +- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/minecraft-server/start-deployFTB b/minecraft-server/start-deployFTB index c8a0c4e6..9d3b3f2a 100755 --- a/minecraft-server/start-deployFTB +++ b/minecraft-server/start-deployFTB @@ -73,8 +73,20 @@ if [[ $startScriptCount = 0 ]]; then fi if [[ $(find ${FTB_BASE_DIR} $entryScriptExpr |wc -l) = 0 ]]; then - echo "Please make sure you are using the server version of the FTB modpack!" - exit 2 + + forgeJar=$(find ${FTB_BASE_DIR} -name 'forge*.jar' -a -not -name 'forge*installer') + if [[ $forgeJar ]]; then + echo "No entry script found, so building one for ${forgeJar}" + cat > ${FTB_BASE_DIR}/ServerStart.sh <