mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-11-10 02:37:09 +00:00
mc: adjust MAX_RAM in settings.cfg for some CurseForge modpacks
Fixes #285
This commit is contained in:
1 parent
d368978949
commit
a63f474109
1 file changed
+5
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user