From 377273e5a3b658daac9b10b3bbadd5ca157b6e6f Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Wed, 1 Nov 2023 19:08:31 -0500 Subject: [PATCH] Fail startup if server properties processing fails (#2460) --- scripts/start-setupServerProperties | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/start-setupServerProperties b/scripts/start-setupServerProperties index 97f57cea..f0ab364c 100755 --- a/scripts/start-setupServerProperties +++ b/scripts/start-setupServerProperties @@ -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 }