mirror of
https://github.com/itzg/docker-minecraft-server
synced 2025-01-18 23:13:53 +00:00
parent
736979c20b
commit
4ad447ba6c
1 changed files with 4 additions and 0 deletions
|
@ -119,6 +119,10 @@ EOF
|
|||
if [ -f "${FTB_DIR}/settings.cfg" ]; then
|
||||
sed -i "s/MAX_RAM=[^;]*/MAX_RAM=${MAX_MEMORY}/" "${FTB_DIR}/settings.cfg"
|
||||
fi
|
||||
# if missing shebang line, then run file through bash
|
||||
if ! head -1 "${FTB_SERVER_START}"|grep -q "^#!"; then
|
||||
mcServerRunnerArgs="${mcServerRunnerArgs} --shell bash"
|
||||
fi
|
||||
|
||||
cd "${FTB_DIR}"
|
||||
log "Running FTB ${FTB_SERVER_START} in ${FTB_DIR} ..."
|
||||
|
|
Loading…
Reference in a new issue