Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion scripts/start-configuration
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ fi
# Setup RCON password

if isTrue "${ENABLE_RCON:-true}"; then
# turn off debug output
set +x

if [[ -v RCON_PASSWORD_FILE ]]; then
if [ ! -e "${RCON_PASSWORD_FILE}" ]; then
log ""
Expand All @@ -78,11 +81,12 @@ if isTrue "${ENABLE_RCON:-true}"; then
# For rcon-cli access running via exec, which by default is running as root
echo "password=${RCON_PASSWORD}" > "$HOME/.rcon-cli.env"
echo "password: \"${RCON_PASSWORD}\"" > "$HOME/.rcon-cli.yaml"

isDebugging && set -x
else
rm -f "$HOME/.rcon-cli.env" "$HOME/.rcon-cli.yaml"
fi


##########################################
# Auto-pause/stop

Expand Down