13 lines
No EOL
531 B
Bash
13 lines
No EOL
531 B
Bash
#!/bin/sh
|
|
|
|
# TODO Check venv, create if it doesn't exist
|
|
|
|
: "${ACTIVE_SCRIPT:=}"
|
|
|
|
SCRIPT_DIR="${SERVER_DIR}/scripts"
|
|
TOOL_SCRIPT_DIR="${SERVER_DIR}/.scripts"
|
|
|
|
"${TOOL_SCRIPT_DIR}"/load-script.sh "${SCRIPT_DIR}" "${ACTIVE_SCRIPT}"
|
|
|
|
# Taken directly from the CurseForge Generic egg. No touchy.
|
|
java $([[ -f user_jvm_args.txt ]] && printf %s "@user_jvm_args.txt") -Xms128M -Xmx{{SERVER_MEMORY}}M -Dterminal.jline=false -Dterminal.ansi=true $([[ ! -f unix_args.txt ]] && printf %s "-jar `cat .serverjar`" || printf %s "@unix_args.txt") |