Clanwarz Loader

New Clients 50% off first month with Discount Code: save50now - Returning Clients 25% off first month with Discount Code: save25now


 

How To Update Steam Games Using Didrole Alternate Steam Tool For Linux


Clanwarz.com - Pay Invoices


How To Update Steam Games - Steam Update Scripts - Steamcmd

Once you have the Steam Alternate Tool created by our good friends at Didrole.com installed, you will need to update each game. You can do this a few different way with one being logged into your TCAdmin Control Panel. If you want to bypass TCAdmin completely, then create a few scripts and execute them while you are inside your linux server.

If you have a script you would like to contribute and have us add to our Tcadmin scripting area, please feel free to contact us by registering and opening a support ticket when you can. We will post the script here and hopefully it will help other game admins

Keep in mind there are many ways to perform an action in Linux and Linux Scripting. The scripts below will show you an easy way to update each Linux Dedicated Server offered for download via Steam. Hope this helps anyone who is having trouble. Enjoy!


Game Folder Names In TCAdmin Are Important


If you are using TCAdmin, then you probably have a nice naming pattern for your server files.

To keep things simple, let us refer to TCAdmin as a user always docked at /home/tcadmin

Let's place a game folder within tcadmin so the path would be /home/tcadmin/games

Remember to name your game server file folders according to the Operating System the files are for. A simple way would be to add the -windows or -linux at the end of the game folder name.

Example:

[tcadmin@myserver games]# ls
cs16-server-linux
cs16-server-linux.tar.gz  
cs16-server-windows
cs16-server-windows.tar.gz      
csgo-server-linux    
csgo-server-linux.tar.gz
csgo-server-windows    
csgo-server-windows.tar.gz
			

Then the full paths to your folders and compressed files would be something like

/home/tcadmin/games/cs16-server-linux
/home/tcadmin/games/cs16-server-linux.tar.gz  
/home/tcadmin/games/cs16-server-windows
/home/tcadmin/games/cs16-server-windows.tar.gz      
/home/tcadmin/games/csgo-server-linux    
/home/tcadmin/games/csgo-server-linux.tar.gz
/home/tcadmin/games/csgo-server-windows    
/home/tcadmin/games/csgo-server-windows.tar.gz
			

A Simple Script You Can Use For Linux Steam Games


Here's a simple script you can use that will work for all linux dedicated servers deliverable via Steam. Be sure that the paths are set correctly. There is also a script directory that should be set /home/tcadmin/games/.scripts

#!/bin/bash
#
#-- USEAGE: sh tcadmin-steam-game-update.sh APP-ID GAME-NAME
#
#-- Didrole - TCAdmin - Clanwarz - Steam Game Update Script
#-- -------------------------------------------------------

#-- Game Related
app_id="${1}"
game_name="${2}"

#-- Tcadmin Directories
steamcmd_dir="/home/tcadmin/Monitor/Tools/SteamCmd"
games_dir="/home/tcadmin/games"
scripts_dir="/home/tcadmin/games/.scripts"
game_name_dir="${games_dir}/${game_name}-server-linux"


if [ "$(id -u)" = "0" ]; then
   chown --recursive tcadmin:tcadmin /home/tcadmin/
   echo "You Are Root - Changing Over To Tcadmin - Try Command Again ..."
   echo ""   
   su - tcadmin; cd $scripts_dir
   exit 1
fi

#-- Check to be sure you are passing 2 variables - game name and app id
if [[ $# -eq 2 ]]; then
	clear
  echo ""
  echo "Almost - remember you have to pipe in the app_id and game_name by adding it to the end of the command ..."
  echo "USEAGE: sh tcadmin-steam-game-update.sh APP-ID GAME-NAME"
  echo ""
  echo "Example for CSGO Game"
  echo "app_id = 740"
  echo "game_name = csgo"
  echo "sh tcadmin-steam-game-update.sh 740 csgo"
  echo ""
  echo ""
  exit
fi

cd $steamcmd_dir
./UpdateTool.sh -command update -game $app_id -dir $game_name_dir -verify_all
			

After the script is on your server and the TCAdmin paths are set correctly, chmod the script and execute it.

    
chmod 0700 tcadmin-steam-game-update.sh
sh tcadmin-steam-game-update.sh 740 csgo
			

The Clanwarz Guarantee


All Clanwarz services come equipped with Custom made Control Panels with features you will only find here at Clanwarz. Most services will be setup within seconds in the location closest to you.

When ordering your new Clanwarz Service, be sure to take advantage of any domain management specials we have to offer as an addon. Remember domain records are setup instantly and easily with our Domain Wizards. Dedicated Ip Addresses are also available along with Dedicated Admin time for custom server setups and walk throughs.

Every Service rented at Clanwarz comes with a Money Back Guarantee so please order with confidence.


Publisher: Clanwarz, Inc.
Website: www.clanwarz.com
Date:



Also Read