mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
mc: adjust MAX_RAM in settings.cfg for some CurseForge modpacks
Fixes #285
This commit is contained in:
parent
d368978949
commit
a63f474109
@ -101,6 +101,11 @@ export MAX_RAM="${MAX_MEMORY}"
|
||||
export JAVA_PARAMETERS="-Xms${INIT_MEMORY} $expandedDOpts"
|
||||
EOF
|
||||
|
||||
# patch CurseForge cfg file, if present
|
||||
if [ -f ${FTB_DIR}/settings.cfg ]; then
|
||||
sed -i "/MAX_RAM=.*/ c MAX_RAM=${MAX_MEMORY};" ${FTB_DIR}/settings.cfg
|
||||
fi
|
||||
|
||||
cd ${FTB_DIR}
|
||||
echo "Running FTB ${FTB_SERVER_START} in ${FTB_DIR} ..."
|
||||
exec mc-server-runner ${mcServerRunnerArgs} ${FTB_SERVER_START}
|
||||
|
Loading…
Reference in New Issue
Block a user