mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-09-18 03:47:57 +00:00
fix(minecraft/entrypoint): create mods dir for packages without it
This commit is contained in:
@@ -76,6 +76,11 @@ case "X$MANIFEST" in
|
|||||||
X*.json)
|
X*.json)
|
||||||
if [ -f "${MANIFEST}" ]; then
|
if [ -f "${MANIFEST}" ]; then
|
||||||
MOD_DIR=${FTB_BASE_DIR:-/data}/mods
|
MOD_DIR=${FTB_BASE_DIR:-/data}/mods
|
||||||
|
if [ ! -d "$MOD_DIR" ]
|
||||||
|
then
|
||||||
|
echo "Creating mods dir $MOD_DIR"
|
||||||
|
mkdir -p "$MOD_DIR"
|
||||||
|
fi
|
||||||
echo "Starting manifest download..."
|
echo "Starting manifest download..."
|
||||||
cat "${MANIFEST}" | jq -r '.files[] | (.projectID|tostring) + " " + (.fileID|tostring)'| while read -r p f
|
cat "${MANIFEST}" | jq -r '.files[] | (.projectID|tostring) + " " + (.fileID|tostring)'| while read -r p f
|
||||||
do
|
do
|
||||||
|
|||||||
Reference in New Issue
Block a user