Jump to content

Auto Update of game servers


biohazard

Recommended Posts

Hi Guys

 

I'm new on this forums, but did some research and could not find any way to schedule autoupdate of all game servers. Now I am aware you can easily set up a schedule to check for updates, and then create another schedule to update all existing services ONCE you have the update file. I want to be sure that my servers are up to date, without having to login every day to check it or having people spamming me about out of date servers and me referring them to their team leaders....

 

So my question: has anyone figured out how to properly implement autoupdate within tcadmin? I could knock up abash script that does that, but I think this is that I purchased TCAdmin for. I only host tf2 servers, so we are not talking about running update on 10 different types of services here.

 

Any help/ suggestions would be appreciated.

 

@Devs: Is this on your roadmap by any chance?

 

Cheers

Bio

Link to comment
Share on other sites

I will take it as a no for all questions then :(

 

nvm, fixed with little script I made

 

#!/bin/bash

# Updater script for tcadmin services.
# Made by bio 21.03.2013

# Vars
SERVICE_ID=$(find /home/tcagame/ -name "orangebox" |sed 's:orangebox::g;s:/: :g'| awk '{print $4}')
PATHS=$(find /home/tcagame/ -name "orangebox" | sed 's|orangebox||g')
BROWSER=/home/tcadmin/Monitor/servicebrowser
UPDATETOOL=/home/tcagame/hlds/steam
LOG=/home/tcagame/hlds/logs/updatelog_`date +%F_%H%M%S`.txt
touch $LOG

# Functions
function stop {
for i in $SERVICE_ID
do
       $BROWSER -service=$i -command=stop >> $LOG
done
}

function start {
for i in $SERVICE_ID
do
       $BROWSER -service=$i -command=start >> $LOG
done
}


function updateAll {
for i in $PATHS
do
       echo -e "\n\n\n\n\n$i\n\n" >> $LOG
       $UPDATETOOL -command update -game tf -dir $i -retry >> $LOG
done
}

# Main
stop
updateAll
start

# END OF FILE

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Who's Online   0 Members, 0 Anonymous, 33 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use