Update scripts/start-server.sh

This commit is contained in:
2023-06-23 20:53:43 +02:00
parent 1a5ff66373
commit 8d26d2a8d3

View File

@@ -75,12 +75,12 @@ else
fi fi
echo "---Checking for 'dedicatedserver.cfg'---" echo "---Checking for 'dedicatedserver.cfg'---"
if [ ! -f ${SERVER_DIR}/WINE64/drive_c/users/steam/AppData/LocalLow/Endnight/SonsOfTheForestDS/dedicatedserver.cfg ]; then if [ ! -f ${SERVER_DIR}/userdata/dedicatedserver.cfg ]; then
echo "---'dedicatedserver.cfg' not found downloading---" echo "---'dedicatedserver.cfg' not found downloading---"
if [ ! -d ${SERVER_DIR}/WINE64/drive_c/users/steam/AppData/LocalLow/Endnight/SonsOfTheForestDS ]; then if [ ! -d ${SERVER_DIR}/userdata ]; then
mkdir -p ${SERVER_DIR}/WINE64/drive_c/users/steam/AppData/LocalLow/Endnight/SonsOfTheForestDS mkdir -p ${SERVER_DIR}/userdata
fi fi
cd ${SERVER_DIR}/WINE64/drive_c/users/steam/AppData/LocalLow/Endnight/SonsOfTheForestDS cd ${SERVER_DIR}/userdata
if wget -q -nc --show-progress --progress=bar:force:noscroll https://raw.githubusercontent.com/ich777/docker-steamcmd-server/sonsoftheforest/config/dedicatedserver.cfg ; then if wget -q -nc --show-progress --progress=bar:force:noscroll https://raw.githubusercontent.com/ich777/docker-steamcmd-server/sonsoftheforest/config/dedicatedserver.cfg ; then
echo "---Successfully downloaded 'dedicatedserver.cfg'---" echo "---Successfully downloaded 'dedicatedserver.cfg'---"
else else
@@ -88,8 +88,8 @@ if [ ! -f ${SERVER_DIR}/WINE64/drive_c/users/steam/AppData/LocalLow/Endnight/Son
sleep infinity sleep infinity
fi fi
fi fi
if [ ! -f ${SERVER_DIR}/WINE64/drive_c/users/steam/AppData/LocalLow/Endnight/SonsOfTheForestDS/ownerswhitelist.txt ]; then if [ ! -f ${SERVER_DIR}/userdata/ownerswhitelist.txt ]; then
touch ${SERVER_DIR}/WINE64/drive_c/users/steam/AppData/LocalLow/Endnight/SonsOfTheForestDS/ownerswhitelist.txt touch ${SERVER_DIR}/userdata/ownerswhitelist.txt
fi fi
echo "---Checking for old display lock files---" echo "---Checking for old display lock files---"
@@ -99,4 +99,4 @@ echo "---Server ready---"
echo "---Start Server---" echo "---Start Server---"
cd ${SERVER_DIR} cd ${SERVER_DIR}
xvfb-run --auto-servernum --server-args='-screen 0 640x480x24:32' wine64 ${SERVER_DIR}/SonsOfTheForestDS.exe ${GAME_PARAMS} xvfb-run --auto-servernum --server-args='-screen 0 640x480x24:32' wine64 ${SERVER_DIR}/SonsOfTheForestDS.exe -userdatapath ${SERVER_DIR}/userdata ${GAME_PARAMS}