Update start-server.sh

This commit is contained in:
2019-05-07 21:17:30 +02:00
committed by GitHub
parent 1cfe0c75c4
commit b0cbb61f03

View File

@@ -49,6 +49,18 @@ else
fi
echo "---Prepare Server---"
if [ ! -f ${DATA_DIR}/.klei/DoNotStarveTogether/Cluster_1/cluster_token.txt ]; then
echo "---No cluster_token.txt found, downloading template, please create your own to run the server!!!...---"
wget -q -O ${DATA_DIR}/.klei/DoNotStarveTogether/Cluster_1/cluster_token.txt https://raw.githubusercontent.com/ich777/docker-steamcmd-server/dontstarve/config/cluster_token.txt
fi
if [ ! -f ${DATA_DIR}/.klei/DoNotStarveTogether/Cluster_1/cluster.ini ]; then
echo "---No cluster.ini found, downloading template...---"
wget -q -O ${DATA_DIR}/.klei/DoNotStarveTogether/Cluster_1/cluster.ini https://raw.githubusercontent.com/ich777/docker-steamcmd-server/dontstarve/config/cluster.ini
fi
if [ ! -f ${DATA_DIR}/.klei/DoNotStarveTogether/Cluster_1/Master/server.ini ]; then
echo "---No cluster.ini found, downloading template...---"
wget -q -O ${DATA_DIR}/.klei/DoNotStarveTogether/Cluster_1/Master/server.ini https://raw.githubusercontent.com/ich777/docker-steamcmd-server/dontstarve/config/server.ini
fi
chmod -R 770 ${DATA_DIR}
echo "---Start Server---"