mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-14 06:12:27 +00:00
19 lines
465 B
Bash
19 lines
465 B
Bash
#!/bin/bash
|
|
|
|
set -e -o pipefail
|
|
|
|
: "${VANILLATWEAKS_FILE:=}"
|
|
: "${VANILLATWEAKS_SHARECODE:=}"
|
|
|
|
# shellcheck source=start-utils
|
|
. "${SCRIPTS:-/}start-utils"
|
|
|
|
if [[ ${VANILLATWEAKS_FILE} || ${VANILLATWEAKS_SHARECODE} ]]; then
|
|
mc-image-helper vanillatweaks \
|
|
--output-directory="/data" \
|
|
--world-subdir="${LEVEL:-world}" \
|
|
--share-codes="$VANILLATWEAKS_SHARECODE" \
|
|
--pack-files="$VANILLATWEAKS_FILE"
|
|
fi
|
|
|
|
exec "${SCRIPTS:-/}start-setupDatapack" "$@"
|