Include RCON in docker image

This commit is contained in:
Thijs van Loef
2024-01-23 11:22:52 +01:00
parent 933b66c391
commit 0d12d05513
4 changed files with 15 additions and 10 deletions

View File

@@ -63,6 +63,13 @@ if [ -n "${RCON_PORT}" ]; then
sed -i "s/RCONPort=[0-9]*/RCONPort=$RCON_PORT/" /palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini
fi
# Configure RCON settings
cat >~/.rcon-cli.yaml <<EOL
host: localhost
port: ${RCON_PORT}
password: ${ADMIN_PASSWORD}
EOL
printf "\e[0;32m*****STARTING SERVER*****\e[0m\n"
echo "${STARTCOMMAND}"
su steam -c "${STARTCOMMAND}"