PHP Code:
#!/bin/bash
screen -S server1srcds -X quit
screen -S server2srcds -X quit
cd /srcds_tf21 && ./steam -command update -game tf -dir .
cd /srcds_tf22 && ./steam -command update -game tf -dir .
cd /srcds_tf21/orangebox && screen -A -m -d -S server1srcds ./nemrun -autoupdate -game tf -steamdir /srcds_tf21 -srvdir . -pidfile /srcds_tf21/srcds.pid +map cp_orange_x3 -debug +maxplayers 24 -autoupdate +ip xxx -port 27015 +fps_max 66.67
cd /srcds_tf22/orangebox && screen -A -m -d -S server2srcds ./nemrun -autoupdate -game tf -steamdir /srcds_tf22 -srvdir . -pidfile /srcds_tf22/srcds.pid +map cp_orange_x3 -debug +maxplayers 24 -autoupdate +ip xxx -port 27016 +fps_max 66.67
Would this update and reboot my servers? I'm planning to use it in a cronjob at the night when my servers are empty together with nemrun.