-
Notifications
You must be signed in to change notification settings - Fork 1
/
start.sh
27 lines (26 loc) · 1.22 KB
/
start.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
#!/bin/bash
echo "root:$STEAM_PASSWORD" |chpasswd
#cd /home/steam
#echo sed
#sed -i 's/steamuser="username"/steamuser=REPLACE_USER/' arma3server
#sed -i 's/steampass="password"/steampass=REPLACE_PASSWORD/' arma3server
#sed -i "s/steamuser=REPLACE_USER/steamuser='$STEAM_USERNAME'/" arma3server
#sed -i "s/steampass=REPLACE_PASSWORD/steampass='$STEAM_PASSWORD'/" arma3server
# set_steam_guard_code $STEAM_GUARD_CODE
#yes y|./tf2server install
#passwd --stdin <<< "$STEAM_PASSWORD"
cd /home/steam
echo sed
sed -i 's/steamuser="username"/steamuser=REPLACE_USER/' arma3server
sed -i 's/steampass="password"/steampass=REPLACE_PASSWORD/' arma3server
sed -i "s/steamuser=REPLACE_USER/steamuser='$STEAM_USERNAME'/" arma3server
sed -i "s/steampass=REPLACE_PASSWORD/steampass='$STEAM_PASSWORD'/" arma3server
sed -i 's/steamuser="username"/steamuser=REPLACE_USER/' tf2server
sed -i 's/steampass="password"/steampass=REPLACE_PASSWORD/' tf2server
sed -i "s/steamuser=REPLACE_USER/steamuser='$STEAM_USERNAME'/" tf2server
sed -i "s/steampass=REPLACE_PASSWORD/steampass='$STEAM_PASSWORD'/" tf2server
set_steam_guard_code $STEAM_GUARD_CODE
yes y|su - steam /home/steam/arma3server install
yes y|su - steam /home/steam/tf2server install
/usr/sbin/sshd
bash /run.sh