Game updates can get fairly complex depending on the game. We offer two ways to update user game installations(folder copy, and system commands).
For more information on how the system works please view Game Addons as both systems are similar in design.
Example of updating using SteamCMD:
{FilesLocation}/steamcmd/steamcmd.sh +login anonymous +force_install_dir {GameHomeDir} +app_update 740 validate +quit
A recommended way to update a steam game on Linux is (using hldsupdatetool):
cd {HomeDir}; cp /usr/local/games/steam {HomeDir}; {HomeDir}/steam -command update -game “Counter-Strike Source” -dir {GameHomeDir} > {GameHomeDir}/steamupdate.txt; {HomeDir}/steam -command update -game “Counter-Strike Source” -dir {GameHomeDir} » {GameHomDir}/steamupdate.txt;
Note that we copy the steam binary from /usr/local/games to the users home directory, this allows the steam binary to update itself without running into a permissions problem. We also run the steam update twice, first time it will update the binary if one is available, the second time is to update the game itself. We also echo the data to a steamupdate.txt file for logging purposes.