From 06aecbb468443123eec3f30626d3bab77d44bc62 Mon Sep 17 00:00:00 2001 From: W3LFARe Date: Thu, 9 Jan 2025 23:51:03 -0500 Subject: [PATCH] Update launch.sh --- launch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launch.sh b/launch.sh index 9d61c7b..c0dd603 100644 --- a/launch.sh +++ b/launch.sh @@ -36,7 +36,7 @@ if [[ -n "$JVM_OPTS" ]]; then for j in ${JVM_OPTS}; do sed -i '$a\'$j'' user_jvm_args.txt; done fi if [[ -n "$MOTD" ]]; then - sed -i "s/motd\s*=/ c motd=$MOTD" /data/server.properties + sed -i "s/^motd=.*/motd=$MOTD/" /data/server.properties fi if [[ -n "$ENABLE_WHITELIST" ]]; then sed -i "s/white-list=.*/white-list=$ENABLE_WHITELIST/" /data/server.properties