mirror of
https://github.com/YuzuZensai/palworld-server-docker.git
synced 2026-01-30 20:24:28 +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_ENABLED=true \
|
||||||
RCON_PORT=25575 \
|
RCON_PORT=25575 \
|
||||||
QUERY_PORT=27015 \
|
QUERY_PORT=27015 \
|
||||||
TZ=UTC
|
TZ=UTC \
|
||||||
|
SERVER_DESCRIPTION=
|
||||||
|
|
||||||
COPY ./scripts/* /home/steam/server/
|
COPY ./scripts/* /home/steam/server/
|
||||||
RUN chmod +x /home/steam/server/init.sh /home/steam/server/start.sh /home/steam/server/backup.sh && \
|
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"
|
- ADMIN_PASSWORD="adminPasswordHere"
|
||||||
- COMMUNITY=false # Enable this if you want your server to show up in the community servers tab, USE WITH SERVER_PASSWORD!
|
- 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_NAME="World of Pals"
|
||||||
|
- SERVER_DESCRIPTION=""
|
||||||
volumes:
|
volumes:
|
||||||
- ./palworld:/palworld/
|
- ./palworld:/palworld/
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ data:
|
|||||||
TZ: UTC
|
TZ: UTC
|
||||||
COMMUNITY: "false" # Enable this if you want your server to show up in the community servers tab, USE WITH SERVER_PASSWORD!
|
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_NAME: "World of Pals"
|
||||||
|
SERVER_DESCRIPTION: ""
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
|
|||||||
@@ -26,6 +26,10 @@ if [ -n "${SERVER_NAME}" ]; then
|
|||||||
STARTCOMMAND+=("-servername=${SERVER_NAME}")
|
STARTCOMMAND+=("-servername=${SERVER_NAME}")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "${SERVER_DESCRIPTION}" ]; then
|
||||||
|
STARTCOMMAND+=("-serverdescription=${SERVER_DESCRIPTION}")
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "${SERVER_PASSWORD}" ]; then
|
if [ -n "${SERVER_PASSWORD}" ]; then
|
||||||
STARTCOMMAND+=("-serverpassword=${SERVER_PASSWORD}")
|
STARTCOMMAND+=("-serverpassword=${SERVER_PASSWORD}")
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user