Update launch.sh

This commit is contained in:
W3LFARe 2025-01-09 23:38:48 -05:00 committed by GitHub
parent e81d34b740
commit af6c49357a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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=.*/motd=$MOTD" /data/server.properties
sed -i "s/motd\s*=/ c motd=$MOTD" /data/server.properties
fi
if [[ -n "$ENABLE_WHITELIST" ]]; then
sed -i "s/white-list=.*/white-list=$ENABLE_WHITELIST/" /data/server.properties