Include and output image.properties (#570)
This commit is contained in:
1 parent
be0a795d98
commit
759b5a6b9f
3 files changed
+17
-1
No files matched your search
+4
-1
@@ -6,6 +6,7 @@ set -eo pipefail
|
||||
: "${PREVIEW:=false}"
|
||||
# Both net and net-secondary hostnames work
|
||||
: "${DOWNLOAD_LINKS_URL:=https://net-secondary.web.minecraft-services.net/api/v1.0/download/links}"
|
||||
: "${USE_BOX64:=true}"
|
||||
|
||||
function isTrue() {
|
||||
[[ "${1,,}" =~ ^(true|on|1)$ ]] && return 0
|
||||
@@ -96,6 +97,8 @@ function lookupVersion() {
|
||||
fi
|
||||
}
|
||||
|
||||
echo "Image info: $(paste -d, -s /etc/image.properties)"
|
||||
|
||||
if [[ ${DEBUG^^} == TRUE ]]; then
|
||||
set -x
|
||||
curlArgs=(-v)
|
||||
@@ -309,7 +312,7 @@ if isTrue "${ENABLE_SSH}"; then
|
||||
fi
|
||||
|
||||
echo "Starting Bedrock server..."
|
||||
if [[ -f /usr/local/bin/box64 ]] ; then
|
||||
if [[ -f /usr/local/bin/box64 ]] && isTrue "${USE_BOX64}" ; then
|
||||
exec mc-server-runner "${mcServerRunnerArgs[@]}" box64 ./"$SERVER"
|
||||
else
|
||||
exec mc-server-runner "${mcServerRunnerArgs[@]}" ./"$SERVER"
|
||||
|
||||
Reference in new issue
Block a user