SRCDS Steam group


Automatic updater and mover
#1
Due to the new CS:S update, you will need to move your whole cstrike stuff into orangebox, and update the server. For the lazy people, i have created a small script (just for linux now), that does all this for you. Simply put it in your gameserver-root and run it Smile

Many may think that this is a superfluous, but its good to have if you are lazy, and run a bit of servers Big Grin

http://dix.vrod.dk/new-update.sh

Code:
cd /your/server/dir/
wget http://dix.vrod.dk/new-update.sh
chmod +x new-update.sh
./new-update.sh

I will make one for windows also

./lol
Slå den med jeres fiberforbindelser...

[Image: 1308107839.png]
Reply
#2
You should add -verify_all to the script. Otherwise there might be problems.
Reply
#3
i haven't got any problems with it yet, but i will do it now
Slå den med jeres fiberforbindelser...

[Image: 1308107839.png]
Reply
#4
I also have written a update script that updates all installations at once:

Code:
#/bin/bash

# Root, oder du kommst ned rein!
if [ ! `id -u` = 0 ]; then
echo "Du musst root sein, um das Script auszufuehren"
exit 0
fi

INSTALLATION=`find /home/ -name cstrike -type d | grep -v cstrike/`

for p in $INSTALLATION; do
USER=`ls -la $p | grep maps | awk '{print $3}'`
cd $p
cd ..
if [[ `ls $p | grep cs_office.wad` ]]; then
  echo "In $p wurde CS 1.6 gefunden. Kein Update ausgefuehrt"
elif [ -d cspromod ]; then
  echo "In $p wurde cspromod gefunden. Kein Update ausgefuehrt"
elif [ -d orangebox ]; then
  rm srcds_amd  srcds_i486  srcds_i686  srcds_run
  mv cstrike orangebox
  su -c "screen -A -m -d -L -S cssupdate ./steam -command update -game 'Counter-Strike Source' -dir . -verify_all -retry" $USER
  sleep 60
  if [[ `grep 'Getting version 39 of Steam HLDS Update Tool' screenlog.0` ]]; then
   su -c "screen -A -m -d -L -S cssupdate ./steam -command update -game 'Counter-Strike Source' -dir . -verify_all -retry" $USER
   echo "In $p wurde eine CSS obox Installation gefunden. Update wurde gestartet"
  else
   echo "In $p wurde eine CSS obox Installation gefunden. Update wurde gestartet"
  fi
elif [ ! -d orangebox ]; then
  su -c 'mkdir orangebox' $USER
  rm srcds_amd  srcds_i486  srcds_i686  srcds_run
  mv cstrike orangebox
  su -c "screen -A -m -d -L -S cssupdate ./steam -command update -game 'Counter-Strike Source' -dir . -verify_all -retry" $USER
  sleep 60
  if [[ `grep 'Getting version 39 of Steam HLDS Update Tool' screenlog.0` ]]; then
   su -c "screen -A -m -d -L -S cssupdate ./steam -command update -game 'Counter-Strike Source' -dir . -verify_all -retry" $USER
   echo "In $p wurde eine alte CSS Installation gefunden. Der Ordner orangebox wurde angelegt und das Update gestartet."
  else
   echo "In $p wurde eine alte CSS Installation gefunden. Der Ordner orangebox wurde angelegt und das Update gestartet."
  fi
fi
done
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)