mirror of
https://github.com/YuzuZensai/palworld-server-docker.git
synced 2026-01-06 04:32:43 +00:00
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -73,9 +73,9 @@ if [ -n "${RCON_PORT}" ]; then
|
||||
fi
|
||||
|
||||
# Configure RCON settings
|
||||
cat >~/.rcon-cli.yaml <<EOL
|
||||
host: localhost
|
||||
port: ${RCON_PORT}
|
||||
cat >/home/steam/server/rcon.yaml <<EOL
|
||||
default:
|
||||
address: "127.0.0.1:${RCON_PORT}"
|
||||
password: ${ADMIN_PASSWORD}
|
||||
EOL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user