-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·57 lines (49 loc) · 1.34 KB
/
install.sh
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh
# Run as root
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
echo ---------------------
echo Create user with home
echo ---------------------
useradd -m steam
echo
echo --------------------
echo Install dependencies
echo --------------------
apt-get -y install lib32gcc1
yum -y install glibc libstdc++
yum -y install glibc.i686 libstdc++.i686
pacman -S lib32-gcc-libs --noconfirm
echo
echo ----------------
echo Install SteamCMD
echo ----------------
su -c "./scripts/install-steam.sh" steam
echo ---------------------
echo Install CS:GO configs
echo ---------------------
cp configs/* /home/steam/csgo/csgo/cfg
chown -R steam:steam /home/steam/csgo/csgo/cfg
echo ----------------------
echo Copy example instances
echo ----------------------
cp instances/* /home/steam/instances
chown -R steam:steam /home/steam/instances
echo -----------------
echo Copy systemd unit
echo -----------------
cp systemd/* /etc/systemd/system
echo -------------
echo Start servers
echo -------------
echo configure your instance scripts /home/steam/instances
echo
echo run commands:
echo systemctl start [email protected]
echo systemctl start [email protected]
echo systemctl start [email protected]
echo systemctl start [email protected]
echo
echo and remember enable systemd units!