Skip to content

Commit

Permalink
Added new settings-mode for rcononly settings #221
Browse files Browse the repository at this point in the history
  • Loading branch information
jammsen committed Feb 23, 2024
1 parent 239fddc commit 575e2a1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

[Back to main](README.md#changelog)

## 2024-02-23

- Added new SERVER_SETTINGS_MODE called "rcononly" this will only setup up RCON, everything else is still manually to set (#221)

## 2024-02-22

- Added RCON-Based player detection, for join and leave messages on console, rcon-broadcast and webhooks (#216)
Expand Down
1 change: 1 addition & 0 deletions docs/ENV_VARS.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ These settings control the behavior of the Docker container:

SERVER_SETTINGS_MODE accepts 2 values:
- `auto`: Settings are modified only by environment variables, manual edits will be ignored
- `rcononly`: RCON-Settings are modified by environment variables (RCON_ENABLED, RCON_PORT, ADMIN_PASSWORD), everything else has to be done by editing the file directly, other environment variables are ignored
- `manual`: Settings are modified only by editing the file directly, environment variables are ignored


Expand Down
4 changes: 4 additions & 0 deletions includes/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,10 @@ function setup_configs() {
setup_engine_ini
setup_palworld_settings_ini
setup_rcon_yaml
elif [[ -n ${SERVER_SETTINGS_MODE} ]] && [[ ${SERVER_SETTINGS_MODE} == "rcononly" ]]; then
ew ">>> SERVER_SETTINGS_MODE is set to '${SERVER_SETTINGS_MODE}', using environment variables to ONLY configure RCON!"
ew ">>> ALL SETTINGS excluding setup of rcon.yaml has to be done manually by the user!"
setup_rcon_yaml
else
ew ">>> SERVER_SETTINGS_MODE is set to '${SERVER_SETTINGS_MODE}', NOT using environment variables to configure the server!"
ew ">>> ALL SETTINGS including setup of rcon.yaml has to be done manually by the user!"
Expand Down

0 comments on commit 575e2a1

Please sign in to comment.