From 82e5a3523ea77d6d624e4f8250bcbfb1f5be8358 Mon Sep 17 00:00:00 2001 From: drewburr Date: Sat, 8 Jan 2022 20:08:39 -0600 Subject: [PATCH 1/2] fix: Set default MOTD if unset --- scripts/start-setupServerProperties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/start-setupServerProperties b/scripts/start-setupServerProperties index c700702e521..919d2f0cea9 100755 --- a/scripts/start-setupServerProperties +++ b/scripts/start-setupServerProperties @@ -48,7 +48,7 @@ function customizeServerProps { # If not provided, generate a reasonable default message-of-the-day, # which shows up in the server listing in the client - if ! [ -v "$MOTD" ]; then + if [ -v "$MOTD" ]; then # snapshot is the odd case where we have to look at version to identify that label if [[ ${ORIGINAL_TYPE} == "VANILLA" && ${VERSION} == "SNAPSHOT" ]]; then label=SNAPSHOT From 5784083b445692dcb586eb7d3ec6a67bef8f2464 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Mon, 10 Jan 2022 06:52:15 -0600 Subject: [PATCH 2/2] Restored MOTD logic but fixed syntax --- scripts/start-setupServerProperties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/start-setupServerProperties b/scripts/start-setupServerProperties index 919d2f0cea9..0a70273ae39 100755 --- a/scripts/start-setupServerProperties +++ b/scripts/start-setupServerProperties @@ -48,7 +48,7 @@ function customizeServerProps { # If not provided, generate a reasonable default message-of-the-day, # which shows up in the server listing in the client - if [ -v "$MOTD" ]; then + if ! [ -v MOTD ]; then # snapshot is the odd case where we have to look at version to identify that label if [[ ${ORIGINAL_TYPE} == "VANILLA" && ${VERSION} == "SNAPSHOT" ]]; then label=SNAPSHOT