forked from bboehmke/docker-cs-source
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcss.sh
More file actions
executable file
·33 lines (24 loc) · 782 Bytes
/
css.sh
File metadata and controls
executable file
·33 lines (24 loc) · 782 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
31
32
33
#!/bin/bash
# change the directory
cd /data/steam
# check if the valdation maode is active
if [ $CHECKFILES == "true" ]; then
VALIDATE="validate"
fi
# check if the valdation maode is active
if [ -n $GAME_PORT ]; then
PORT="-port $GAME_PORT"
fi
# Load steam cmd if not exist
if [ ! -f steamcmd_linux.tar.gz ]; then
echo -e "\n\nLoad SteamCMD...\n"
wget -q https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar -xf steamcmd_linux.tar.gz
fi
# Update server
echo -e "\n\nUpdating CSS...\n"
./steamcmd.sh +login anonymous +force_install_dir /data/steam/css +app_update 232330 $VALIDATE +quit
# Start the server
cd /data/steam/css/
echo -e "\n\nLaunching CSS Server...\n"
./srcds_run -game cstrike -secure +maxplayers 10 +map de_dust2 $PORT