Skip to content

Commit

Permalink
Merge pull request #148 from odakaui/main
Browse files Browse the repository at this point in the history
Change rcon-cli executable
  • Loading branch information
thijsvanloef authored Jan 27, 2024
2 parents 9f3d437 + abc23dd commit 41a364b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN wget -q https://github.com/itzg/rcon-cli/releases/download/1.6.4/rcon-cli_1.6.4_linux_amd64.tar.gz -O - | tar -xz && \
mv rcon-cli /usr/bin/rcon-cli
RUN wget -q https://github.com/gorcon/rcon-cli/releases/download/v0.10.3/rcon-0.10.3-amd64_linux.tar.gz -O - | tar -xz && \
mv rcon-0.10.3-amd64_linux/rcon /usr/bin/rcon-cli

ENV PORT= \
PUID=1000 \
Expand Down
2 changes: 1 addition & 1 deletion scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 41a364b

Please sign in to comment.