mirror of
https://github.com/YuzuZensai/palworld-server-docker.git
synced 2026-01-06 04:32:43 +00:00
Merge pull request #122 from Dashboy1998/Server-Description
Added description for server
This commit is contained in:
@@ -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 && \
|
||||
|
||||
@@ -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/
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user