Merge pull request #122 from Dashboy1998/Server-Description

Added description for server
This commit is contained in:
Thijs van Loef
2024-01-27 10:52:43 +01:00
committed by GitHub
4 changed files with 8 additions and 1 deletions

View File

@@ -27,7 +27,8 @@ ENV PORT= \
RCON_ENABLED=true \
RCON_PORT=25575 \
QUERY_PORT=27015 \
TZ=UTC
TZ=UTC \
SERVER_DESCRIPTION=
COPY ./scripts/* /home/steam/server/
RUN chmod +x /home/steam/server/init.sh /home/steam/server/start.sh /home/steam/server/backup.sh && \

View File

@@ -19,5 +19,6 @@ services:
- ADMIN_PASSWORD="adminPasswordHere"
- COMMUNITY=false # Enable this if you want your server to show up in the community servers tab, USE WITH SERVER_PASSWORD!
- SERVER_NAME="World of Pals"
- SERVER_DESCRIPTION=""
volumes:
- ./palworld:/palworld/

View File

@@ -14,6 +14,7 @@ data:
TZ: UTC
COMMUNITY: "false" # Enable this if you want your server to show up in the community servers tab, USE WITH SERVER_PASSWORD!
SERVER_NAME: "World of Pals"
SERVER_DESCRIPTION: ""
---
apiVersion: v1
kind: ConfigMap

View File

@@ -26,6 +26,10 @@ if [ -n "${SERVER_NAME}" ]; then
STARTCOMMAND+=("-servername=${SERVER_NAME}")
fi
if [ -n "${SERVER_DESCRIPTION}" ]; then
STARTCOMMAND+=("-serverdescription=${SERVER_DESCRIPTION}")
fi
if [ -n "${SERVER_PASSWORD}" ]; then
STARTCOMMAND+=("-serverpassword=${SERVER_PASSWORD}")
fi