Disable healthcheck for unsupported versions (#2360)

This commit is contained in:
DanielN
2023-08-27 16:41:42 +02:00
committed by GitHub
parent 03034d2f15
commit bb57d7e99f
4 changed files with 13 additions and 3 deletions

View File

@@ -221,7 +221,11 @@ function copyFilesForCurseForge() {
cp -f /data/eula.txt "${FTB_DIR}/"
}
if versionLessThan 1.7; then
if versionLessThan 'b1.8'; then
echo "
DISABLE_HEALTHCHECK=true
" > /data/.mc-health.env
elif versionLessThan 1.7; then
echo "
MC_HEALTH_EXTRA_ARGS=(
--use-server-list-ping