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/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
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 && \
|
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-cli /usr/bin/rcon-cli
|
mv rcon-0.10.3-amd64_linux/rcon /usr/bin/rcon-cli
|
||||||
|
|
||||||
ENV PORT= \
|
ENV PORT= \
|
||||||
PUID=1000 \
|
PUID=1000 \
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ fi
|
|||||||
term_handler() {
|
term_handler() {
|
||||||
if [ "${RCON_ENABLED}" = true ]; then
|
if [ "${RCON_ENABLED}" = true ]; then
|
||||||
rcon-cli save
|
rcon-cli save
|
||||||
rcon-cli shutdown 1
|
rcon-cli "shutdown 1"
|
||||||
else # Does not save
|
else # Does not save
|
||||||
kill -SIGTERM "$(pidof PalServer-Linux-Test)"
|
kill -SIGTERM "$(pidof PalServer-Linux-Test)"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -73,10 +73,10 @@ if [ -n "${RCON_PORT}" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Configure RCON settings
|
# Configure RCON settings
|
||||||
cat >~/.rcon-cli.yaml <<EOL
|
cat >/home/steam/server/rcon.yaml <<EOL
|
||||||
host: localhost
|
default:
|
||||||
port: ${RCON_PORT}
|
address: "127.0.0.1:${RCON_PORT}"
|
||||||
password: ${ADMIN_PASSWORD}
|
password: ${ADMIN_PASSWORD}
|
||||||
EOL
|
EOL
|
||||||
|
|
||||||
printf "\e[0;32m*****STARTING SERVER*****\e[0m\n"
|
printf "\e[0;32m*****STARTING SERVER*****\e[0m\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user