mirror of
https://github.com/YuzuZensai/palworld-server-docker.git
synced 2026-01-06 04:32:43 +00:00
make port and players optional
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
STARTCOMMAND="./PalServer.sh -port=${PORT} -players=${PLAYERS}"
|
||||
STARTCOMMAND="./PalServer.sh"
|
||||
|
||||
if [ -n "${PORT}" ]; then
|
||||
STARTCOMMAND="${STARTCOMMAND} -port=${PORT}"
|
||||
fi
|
||||
|
||||
if [ -n "${PLAYERS}" ]; then
|
||||
STARTCOMMAND="${STARTCOMMAND} -players=${PLAYERS}"
|
||||
fi
|
||||
|
||||
if [ "${COMMUNITY}" = true ]; then
|
||||
STARTCOMMAND="${STARTCOMMAND} EpicApp=PalServer"
|
||||
|
||||
Reference in New Issue
Block a user