Merge pull request #148 from odakaui/main

Change rcon-cli executable
This commit is contained in:
Thijs van Loef
2024-01-27 11:06:38 +01:00
committed by GitHub
3 changed files with 7 additions and 7 deletions

View File

@@ -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

View File

@@ -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"