Disabled log4j config when TYPE=SPIGOT

Helps #482
This commit is contained in:
Geoff Bourne 2020-04-05 17:32:26 -05:00
parent 4bbc7d142f
commit 56c2f0b466

View file

@ -27,6 +27,7 @@ if [ -n "$ICON" -a ! -e server-icon.png ]; then
fi
fi
if [ ${TYPE} != "SPIGOT" ]; then
# Set up log configuration
LOGFILE="/data/log4j2.xml"
if [ ! -e "$LOGFILE" ]; then
@ -36,6 +37,7 @@ else
log "log4j2.xml already created, skipping"
fi
JVM_OPTS="-Dlog4j.configurationFile=/data/log4j2.xml ${JVM_OPTS}"
fi
# Make sure files exist and are valid JSON (for pre-1.12 to 1.12 upgrades)
log "Checking for JSON files."