From 08556a63b858807f3b78b67d9621918bf533c175 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Thu, 26 May 2022 22:02:26 -0500 Subject: [PATCH] CurseForge modpacks use run.sh when present (#1534) * CurseForge modpacks use run.sh when present * Added lbzip2 --- build/ubuntu/install-packages.sh | 1 + scripts/start-deployCF | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/build/ubuntu/install-packages.sh b/build/ubuntu/install-packages.sh index d8aa33d1..cea0d7ef 100755 --- a/build/ubuntu/install-packages.sh +++ b/build/ubuntu/install-packages.sh @@ -22,6 +22,7 @@ apt-get install -y \ nano \ unzip \ zstd \ + lbzip2 \ knockd apt-get clean \ No newline at end of file diff --git a/scripts/start-deployCF b/scripts/start-deployCF index ff2a72e8..f95daa07 100755 --- a/scripts/start-deployCF +++ b/scripts/start-deployCF @@ -33,7 +33,10 @@ export TYPE=CURSEFORGE FTB_SERVER_MOD=${FTB_SERVER_MOD:-$CF_SERVER_MOD} log "Looking for Feed-The-Beast / CurseForge server modpack." -requireVar FTB_SERVER_MOD +if [[ ! $FTB_SERVER_MOD ]]; then + log "ERROR: CF_SERVER_MOD or FTB_SERVER_MOD is required to be set" + exit 1 +fi downloadModpack() { srv_modpack=${FTB_SERVER_MOD} @@ -142,6 +145,7 @@ entryScriptExpr=" -o -name start-server.sh -o -name startserver.sh -o -name StartServer.sh + -o -name run.sh " if [[ -d ${FTB_BASE_DIR} ]]; then @@ -170,8 +174,8 @@ if [[ $startScriptCount = 0 ]]; then ( cd "$(dirname "${installScript}")" chmod +x ./install.sh - log "Running included install.sh" - ./install.sh + log "Running included install.sh. This might take a minute or two..." + ./install.sh > install.log ) fi fi