@@ -35,10 +35,10 @@ log "Running as uid=$(id -u) gid=$(id -g) with /data as '$(ls -lnd /data)'"
3535if [ ! -e /data/eula.txt ]; then
3636 if ! isTrue " $EULA " ; then
3737 log " "
38- log " Please accept the Minecraft EULA at"
39- log " https://account.mojang.com/documents/minecraft_eula"
40- log " by adding the following immediately after 'docker run':"
41- log " -e EULA=TRUE"
38+ logError " Please accept the Minecraft EULA at"
39+ logError " https://account.mojang.com/documents/minecraft_eula"
40+ logError " by adding the following immediately after 'docker run':"
41+ logError " -e EULA=TRUE"
4242 log " "
4343 exit 1
4444 fi
@@ -62,10 +62,10 @@ if isTrue "${ENABLE_RCON:-true}"; then
6262 if [[ -v RCON_PASSWORD_FILE ]]; then
6363 if [ ! -e " ${RCON_PASSWORD_FILE} " ]; then
6464 log " "
65- log " Initial RCON password file ${RCON_PASSWORD_FILE} does not seems to exist."
66- log " Please ensure your configuration."
67- log " If you are using Docker Secrets feature, please check this for further information: "
68- log " https://docs.docker.com/engine/swarm/secrets"
65+ logError " Initial RCON password file ${RCON_PASSWORD_FILE} does not seems to exist."
66+ logError " Please ensure your configuration."
67+ logError " If you are using Docker Secrets feature, please check this for further information: "
68+ logError " https://docs.docker.com/engine/swarm/secrets"
6969 log " "
7070 exit 1
7171 else
9090# Auto-pause/stop
9191
9292if isTrue " ${ENABLE_AUTOPAUSE} " && isTrue " ${EXEC_DIRECTLY:- false} " ; then
93- log " EXEC_DIRECTLY=true is incompatible with ENABLE_AUTOPAUSE=true"
93+ logError " EXEC_DIRECTLY=true is incompatible with ENABLE_AUTOPAUSE=true"
9494 exit 1
9595fi
9696
9797if isTrue " ${ENABLE_AUTOPAUSE} " && isTrue " ${ENABLE_AUTOSTOP} " ; then
98- log " ENABLE_AUTOPAUSE=true is incompatible with ENABLE_AUTOSTOP=true"
98+ logError " ENABLE_AUTOPAUSE=true is incompatible with ENABLE_AUTOSTOP=true"
9999 exit 1
100100fi
101101
@@ -111,9 +111,9 @@ function fixJavaPath() {
111111 # Some Docker management UIs grab all the image declared variables and present them for configuration.
112112 # When upgrading images across Java versions, that creates a mismatch in PATH's expected by base image.
113113 if ! which java > /dev/null; then
114- log " ERROR: your Docker provider has an annoying flaw where it"
115- log " tries to set PATH even though the container establishes"
116- log " a very specific value."
114+ logError " Your Docker provider has an annoying flaw where it"
115+ logError " tries to set PATH even though the container establishes"
116+ logError " a very specific value."
117117 sleep 2
118118 # now find where java might be
119119 for d in /opt/java/openjdk/bin /usr/bin; do
@@ -128,7 +128,7 @@ function fixJavaPath() {
128128
129129
130130if ! fixJavaPath; then
131- log " ERROR: could not locate path that contains java"
131+ logError " could not locate path that contains java"
132132 exit 1
133133fi
134134
@@ -183,7 +183,7 @@ if [[ $MOD_PLATFORM ]]; then
183183 ;;
184184
185185 * )
186- log " ERROR; Invalid MOD_PLATFORM: '$MOD_PLATFORM '"
186+ logError " Invalid MOD_PLATFORM: '$MOD_PLATFORM '"
187187 exit 1
188188 ;;
189189 esac
@@ -272,11 +272,11 @@ case "${TYPE^^}" in
272272 ;;
273273
274274 * )
275- log " ERROR: Invalid TYPE: '$TYPE '"
276- log " Must be: VANILLA, FORGE, BUKKIT, SPIGOT, PAPER, FOLIA, PURPUR, FABRIC, QUILT,"
277- log " SPONGEVANILLA, CUSTOM, MAGMA, MOHIST, CATSERVER, AIRPLANE, PUFFERFISH,"
278- log " CANYON, LIMBO, CRUCIBLE"
275+ logError " Invalid TYPE: '$TYPE '"
276+ logError " Must be: VANILLA, FORGE, BUKKIT, SPIGOT, PAPER, FOLIA, PURPUR, FABRIC, QUILT,"
277+ logError " SPONGEVANILLA, CUSTOM, MAGMA, MOHIST, CATSERVER, AIRPLANE, PUFFERFISH,"
278+ logError " CANYON, LIMBO, CRUCIBLE"
279279 exit 1
280280 ;;
281281
282- esac
282+ esac
0 commit comments