Linux/autoupdate
From GameCPWiki
This option does not work on Windows based machines.
Autoupdate is a basic bash script designed to work with packages created with Autolink
This program will automatically create missing directorys, configs and symlink all missing files.
In its current state you will call it once for each user defining the users game directory, this only works for sub-directory configured games.
It takes around 10 seconds to update 1 user's srcds_l game, cpu useage was around 15% on a 64 bit 1.8Ghz AMD CPU, I will be working on trying to reduce the load this application uses, untill then please run only at off-peak times.
This program will not remove or overwrite files, it only creates missing files and directorys.
This how-to will explain how to setup and configure the autoupdate program to update your users installs easily.
This program is designed for those that use the symlink method GameCP uses.
Update: You can now define multiple config types, ie: .cfg , .txt, .ini, up to 4 at a time.
Download autolink: Code: cd /usr/bin ; wget http://cvs.gamecp.com/autoupdate ; chmod +x autoupdate
Autoupdate is called with the /usr/local/games/ directory first then the type of configs you want to copy, in this case srcds_l is a full version located in /usr/local/games and is copying .cfg files instead of linking them. The directory called must be the same in /usr/local/games and the /home/user, if calling srcds_l you must have /home/user/srcds_l
Run autoupdate to verify it works before moving on, replase username with a valid user: Code: cd /home/username ; autoupdate srcds_l .cfg .txt The output should show its creating directorys, copying configs and linking contents, you may see alot of file already exists while linking, this is normal.
Running this program as root will create the missing files with root ownership, run this as the user or chown the directorys after use.
Once configured there are several ways you can easily manage it with GameCP.
Managing with Command Control
Command Control allows you to execute this command whenever you like: Code: Command Control > Command Paramaters: Command Name: Source auto user update User Level: Admin Text area: autoupdate srcds_l .cfg .txt Save Commands Select a game that uses srcds_l and run the auto-update, if there is no result there is nobody assigned to the game.
From here you can use this by user as well instead of updating everyone.
Managing with Manage Addons
Manage Addons allows you to use this as a user-addon, the user can choose to update his server any time, it’s the exact setup as above. Code: Manage Addons > Add New Addon Name: Source auto user update Assigned Game: (any source game) Addon Install File: none Admin Only: No Update Command line: autoupdate srcds_l .cfg .txt
This should make managing symlink installs much easier.
Please post any comments here.

