diff --git a/minecraft-server/start-finalSetup02Modpack b/minecraft-server/start-finalSetup02Modpack index 29462159..43b53892 100755 --- a/minecraft-server/start-finalSetup02Modpack +++ b/minecraft-server/start-finalSetup02Modpack @@ -75,9 +75,14 @@ if [[ "$MANIFEST" ]]; then case "X$MANIFEST" in X*.json) if [ -f "${MANIFEST}" ]; then - MOD_DIR=${FTB_BASE_DIR:-/data/mods} + MOD_DIR=${FTB_BASE_DIR:-/data}/mods + if [ ! -d "$MOD_DIR" ] + then + echo "Creating mods dir $MOD_DIR" + mkdir -p "$MOD_DIR" + fi echo "Starting manifest download..." - cat "${MANIFEST}" | jq -r '$.files[] | (.projectID|tostring) + " " + (.fileID|tostring)'| while read -r p f + cat "${MANIFEST}" | jq -r '.files[] | (.projectID|tostring) + " " + (.fileID|tostring)'| while read -r p f do if [ ! -f $MOD_DIR/${p}_${f}.jar ] then