Skip to content

Commit e5fa462

Browse files
committed
RCON fixes
1 parent c742c82 commit e5fa462

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

includes/config.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,15 +421,17 @@ function setup_palworld_settings_ini() {
421421
function setup_rcon_yaml () {
422422
if [[ -n ${RCON_ENABLED+x} ]] && [ "$RCON_ENABLED" == "true" ] ; then
423423
ei ">>> RCON is enabled - Setting up rcon.yaml ..."
424+
ew "> Copying rcon.yaml.template to ${RCON_CONFIG_FILE}"
425+
cp --no-preserve=ownership "configs/rcon.yaml" "${RCON_CONFIG_FILE}"
424426
if [[ -n ${RCON_PORT+x} ]]; then
425427
sed -i "s/###RCON_PORT###/$RCON_PORT/" "$RCON_CONFIG_FILE"
426428
else
427-
ee "> RCON_PORT is not set, please set it for RCON functionality to work!"
429+
ee "> ADMIN_PASSWORD is not set, please set it for RCON functionality to work!"
428430
fi
429431
if [[ -n ${ADMIN_PASSWORD+x} ]]; then
430432
sed -i "s/###ADMIN_PASSWORD###/$ADMIN_PASSWORD/" "$RCON_CONFIG_FILE"
431433
else
432-
ee "> RCON_PORT is not set, please set it for RCON functionality to work!"
434+
ee "> ADMIN_PASSWORD is not set, please set it for RCON functionality to work!"
433435
fi
434436
es ">>> Finished setting up 'rcon.yaml' config file"
435437
else

0 commit comments

Comments
 (0)