mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-03-06 14:56:25 +00:00
@@ -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 <<EOF
|
||||
#!/bin/sh
|
||||
. ./settings-local.sh
|
||||
java \${JAVA_PARAMETERS} -Xmx\${MAX_RAM} -jar ${forgeJar} nogui
|
||||
EOF
|
||||
chmod +x ${FTB_BASE_DIR}/ServerStart.sh
|
||||
else
|
||||
echo "Please make sure you are using the server version of the FTB modpack!"
|
||||
exit 2
|
||||
fi
|
||||
fi
|
||||
|
||||
export FTB_SERVER_START=$(find ${FTB_BASE_DIR} $entryScriptExpr)
|
||||
|
||||
@@ -25,7 +25,7 @@ fi
|
||||
|
||||
# Make sure files exist and are valid JSON (for pre-1.12 to 1.12 upgrades)
|
||||
echo "Checking for JSON files."
|
||||
JSON_FILES=$(find . -name '*.json')
|
||||
JSON_FILES=$(find . -maxdepth 1 -name '*.json')
|
||||
for j in $JSON_FILES; do
|
||||
if [[ $(python -c "print open('$j').read().strip()==''") = True ]]; then
|
||||
echo "Fixing JSON $j"
|
||||
|
||||
Reference in New Issue
Block a user