-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentrypoint
executable file
·40 lines (34 loc) · 1.17 KB
/
entrypoint
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env sh
set -eux
mkdir -p /dstserver/dstserver_config/Cluster_1/Master
cat << EOF > '/dstserver/dstserver_config/Cluster_1/Master/server.ini'
[network]
default_server_name = ${DST_DEFAULT_SERVER_NAME}
default_server_description = ${DST_DEFAULT_SERVER_DESCRIPTION}
server_port = ${DST_SERVER_PORT}
server_password = ${DST_SERVER_PASSWORD}
max_players = ${DST_MAX_PLAYERS}
pvp = ${DST_PVP}
game_mode = ${DST_GAME_MODE}
server_intention = ${DST_SERVER_INTENTION}
enable_snapshots = ${DST_ENABLE_SNAPSHOTS}
enable_autosaver = ${DST_ENABLE_AUTOSAVER}
tick_rate = ${DST_TICK_RATE}
connection_timeout = ${DST_CONNECTION_TIMEOUT}
server_save_slot = ${DST_SERVER_SAVE_SLOT}
vote_kick_enabled = ${DST_VOTE_KICK_ENABLED}
pause_when_empty = ${DST_PAUSE_WHEN_EMPTY}
[account]
dedicated_lan_server = ${DST_DEDICATED_LAN_SERVER}
EOF
if [ "${DST_CLUSTER_TOKEN}" != "" ]; then
echo "${DST_CLUSTER_TOKEN}" > '/dstserver/dstserver_config/Cluster_1/cluster_token.txt'
fi
# Start Don't Starve Together Server
cd /dstserver/bin
./dontstarve_dedicated_server_nullrenderer \
-persistent_storage_root /dstserver \
-conf_dir dstserver_config \
-cluster Cluster_1 \
-shard Master \
-bind_ip 0.0.0.0