mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-09-27 16:10:31 +00:00
Merge pull request #291 from dudymas/master
Fix for custom curseforge modpacks that do not have mods dir
This commit is contained in:
@@ -75,9 +75,14 @@ if [[ "$MANIFEST" ]]; then
|
|||||||
case "X$MANIFEST" in
|
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
|
||||||
if [ ! -f $MOD_DIR/${p}_${f}.jar ]
|
if [ ! -f $MOD_DIR/${p}_${f}.jar ]
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user