Provide option to escape unicode in server.properties

This commit is contained in:
Geoff Bourne
2023-11-10 22:16:51 -06:00
parent bf621356c1
commit f5c332736d
3 changed files with 7 additions and 1 deletions

View File

@@ -110,11 +110,13 @@ function customizeServerProps {
setPropertiesArgs=(
--definitions "/image/property-definitions.json"
--escape-unicode="${SERVER_PROPERTIES_ESCAPE_UNICODE:-false}"
)
if [[ -v CUSTOM_SERVER_PROPERTIES ]]; then
setPropertiesArgs+=(--custom-properties "$CUSTOM_SERVER_PROPERTIES")
fi
handleDebugMode
if ! mc-image-helper set-properties "${setPropertiesArgs[@]}" "$SERVER_PROPERTIES"; then
log "ERROR: failed to update server.properties"
exit 1