mirror of
https://github.com/YuzuZensai/palworld-server-docker.git
synced 2026-01-06 04:32:43 +00:00
@@ -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
|
||||
|
||||
@@ -73,10 +73,10 @@ if [ -n "${RCON_PORT}" ]; then
|
||||
fi
|
||||
|
||||
# Configure RCON settings
|
||||
cat >~/.rcon-cli.yaml <<EOL
|
||||
host: localhost
|
||||
port: ${RCON_PORT}
|
||||
password: ${ADMIN_PASSWORD}
|
||||
cat >/home/steam/server/rcon.yaml <<EOL
|
||||
default:
|
||||
address: "127.0.0.1:${RCON_PORT}"
|
||||
password: ${ADMIN_PASSWORD}
|
||||
EOL
|
||||
|
||||
printf "\e[0;32m*****STARTING SERVER*****\e[0m\n"
|
||||
|
||||
Reference in New Issue
Block a user