-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-server.sh
More file actions
30 lines (27 loc) · 977 Bytes
/
start-server.sh
File metadata and controls
30 lines (27 loc) · 977 Bytes
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
#!/bin/bash
set -e
# skip download of steamdcmd if it is there already
if [ ! -f /opt/steamcmd/steamcmd.sh ]; then
echo "SteamCMD not found. Installing..."
mkdir -p /opt/steamcmd && \
cd /opt/steamcmd && \
wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz && \
tar -xvzf steamcmd_linux.tar.gz && \
rm /opt/steamcmd/steamcmd_linux.tar.gz && \
echo "SteamCMD successfully installed"
else
echo "SteamCMD found, skipping installation..."
fi
echo "Update SteamCMD and SCUM dedicated server..."
/opt/steamcmd/steamcmd.sh +@sSteamCmdForcePlatformType windows \
+force_install_dir /opt/scumserver \
+login anonymous \
+app_update 3792580 validate \
+quit
echo "Starting SCUM dedicated server..."
xvfb-run --auto-servernum --server-args="-screen 0 1024x768x24" \
wine /opt/scumserver/SCUM/Binaries/Win64/SCUMServer.exe \
-log \
-port=${PORT:-7777} \
-QueryPort=${QUERYPORT:-27015} \
-MaxPlayers=32