Fail startup if server properties processing fails (#2460)

This commit is contained in:
Geoff Bourne
2023-11-01 19:08:31 -05:00
committed by GitHub
parent 78fd5457d4
commit 377273e5a3

View File

@@ -115,7 +115,10 @@ function customizeServerProps {
setPropertiesArgs+=(--custom-properties "$CUSTOM_SERVER_PROPERTIES")
fi
mc-image-helper set-properties "${setPropertiesArgs[@]}" "$SERVER_PROPERTIES"
if ! mc-image-helper set-properties "${setPropertiesArgs[@]}" "$SERVER_PROPERTIES"; then
log "ERROR: failed to update server.properties"
exit 1
fi
}