mirror of
https://github.com/YuzuZensai/palworld-server-docker.git
synced 2026-01-06 04:32:43 +00:00
Add quotes around shutdown 1
`gorcon/rcon-cli` treats space separated arguments as separate commands. Adding quotes around `rcon-cli "shutdown 1"`, forces rcon-cli to treat it as a single command.
This commit is contained in:
@@ -20,7 +20,7 @@ fi
|
||||
term_handler() {
|
||||
if [ "${RCON_ENABLED}" = true ]; then
|
||||
rcon-cli save
|
||||
rcon-cli shutdown 1
|
||||
rcon-cli "shutdown 1"
|
||||
else # Does not save
|
||||
kill -SIGTERM "$(pidof PalServer-Linux-Test)"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user