@@ -36,10 +36,10 @@ log "Running as uid=$(id -u) gid=$(id -g) with /data as '$(ls -lnd /data)'"
3636if [ ! -e /data/eula.txt ]; then
3737 if ! isTrue " $EULA " ; then
3838 log " "
39- log " Please accept the Minecraft EULA at"
40- log " https://account.mojang.com/documents/minecraft_eula"
41- log " by adding the following immediately after 'docker run':"
42- log " -e EULA=TRUE"
39+ logError " Please accept the Minecraft EULA at"
40+ logError " https://account.mojang.com/documents/minecraft_eula"
41+ logError " by adding the following immediately after 'docker run':"
42+ logError " -e EULA=TRUE"
4343 log " "
4444 exit 1
4545 fi
@@ -63,10 +63,10 @@ if isTrue "${ENABLE_RCON:-true}"; then
6363 if [[ -v RCON_PASSWORD_FILE ]]; then
6464 if [ ! -e " ${RCON_PASSWORD_FILE} " ]; then
6565 log " "
66- log " Initial RCON password file ${RCON_PASSWORD_FILE} does not seems to exist."
67- log " Please ensure your configuration."
68- log " If you are using Docker Secrets feature, please check this for further information: "
69- log " https://docs.docker.com/engine/swarm/secrets"
66+ logError " Initial RCON password file ${RCON_PASSWORD_FILE} does not seems to exist."
67+ logError " Please ensure your configuration."
68+ logError " If you are using Docker Secrets feature, please check this for further information: "
69+ logError " https://docs.docker.com/engine/swarm/secrets"
7070 log " "
7171 exit 1
7272 else
9191# Auto-pause/stop
9292
9393if isTrue " ${ENABLE_AUTOPAUSE} " && isTrue " ${EXEC_DIRECTLY:- false} " ; then
94- log " EXEC_DIRECTLY=true is incompatible with ENABLE_AUTOPAUSE=true"
94+ logError " EXEC_DIRECTLY=true is incompatible with ENABLE_AUTOPAUSE=true"
9595 exit 1
9696fi
9797
9898if isTrue " ${ENABLE_AUTOPAUSE} " && isTrue " ${ENABLE_AUTOSTOP} " ; then
99- log " ENABLE_AUTOPAUSE=true is incompatible with ENABLE_AUTOSTOP=true"
99+ logError " ENABLE_AUTOPAUSE=true is incompatible with ENABLE_AUTOSTOP=true"
100100 exit 1
101101fi
102102
@@ -112,9 +112,9 @@ function fixJavaPath() {
112112 # Some Docker management UIs grab all the image declared variables and present them for configuration.
113113 # When upgrading images across Java versions, that creates a mismatch in PATH's expected by base image.
114114 if ! which java > /dev/null; then
115- log " ERROR: your Docker provider has an annoying flaw where it"
116- log " tries to set PATH even though the container establishes"
117- log " a very specific value."
115+ logError " Your Docker provider has an annoying flaw where it"
116+ logError " tries to set PATH even though the container establishes"
117+ logError " a very specific value."
118118 sleep 2
119119 # now find where java might be
120120 for d in /opt/java/openjdk/bin /usr/bin; do
@@ -129,7 +129,7 @@ function fixJavaPath() {
129129
130130
131131if ! fixJavaPath; then
132- log " ERROR: could not locate path that contains java"
132+ logError " could not locate path that contains java"
133133 exit 1
134134fi
135135
@@ -184,7 +184,7 @@ if [[ $MOD_PLATFORM ]]; then
184184 ;;
185185
186186 * )
187- log " ERROR; Invalid MOD_PLATFORM: '$MOD_PLATFORM '"
187+ logError " Invalid MOD_PLATFORM: '$MOD_PLATFORM '"
188188 exit 1
189189 ;;
190190 esac
@@ -219,7 +219,7 @@ case "${TYPE^^}" in
219219 QUILT)
220220 exec " ${SCRIPTS:-/ } start-deployQuilt" " $@ "
221221 ;;
222-
222+
223223 VANILLA)
224224 exec " ${SCRIPTS:-/ } start-deployVanilla" " $@ "
225225 ;;
@@ -273,11 +273,11 @@ case "${TYPE^^}" in
273273 ;;
274274
275275 * )
276- log " ERROR: Invalid TYPE: '$TYPE '"
277- log " Must be: VANILLA, FORGE, BUKKIT, SPIGOT, PAPER, FOLIA, PURPUR, FABRIC, QUILT,"
278- log " SPONGEVANILLA, CUSTOM, MAGMA, MOHIST, CATSERVER, AIRPLANE, PUFFERFISH,"
279- log " CANYON, LIMBO, CRUCIBLE"
276+ logError " Invalid TYPE: '$TYPE '"
277+ logError " Must be: VANILLA, FORGE, BUKKIT, SPIGOT, PAPER, FOLIA, PURPUR, FABRIC, QUILT,"
278+ logError " SPONGEVANILLA, CUSTOM, MAGMA, MOHIST, CATSERVER, AIRPLANE, PUFFERFISH,"
279+ logError " CANYON, LIMBO, CRUCIBLE"
280280 exit 1
281281 ;;
282282
283- esac
283+ esac
0 commit comments