12-14-2010, 09:00 PM
(This post was last modified: 12-14-2010, 10:05 PM by Terrorkarotte.)
Its not that much. It contains only strings, parsing and sending some commands. Its written in bash. example code (here I get the files from serverdirs users need to have as real files and pass the data in an array) :
The cp -sR command copies folders rekursiv. -> "R" parameter
Instead of copy the files the "s" parameter tells the cp tool to create a symlink to the file. If a file already exists it won´t be replaced with a symlink.
That is why I copy files that need to be editable first and do a cp -sR later.
Code:
for FILES in $(find -type f -name "*.vdf" -o -name "*.cfg" -o -name "*.gam" -o -name "*.txt" -o -name "*.log" -o -name "*.smx" -o -name "*.sp" -o -name "*.db"); do
FILEFOUND[${#FILEFOUND[*]}]=$FILES
done
The cp -sR command copies folders rekursiv. -> "R" parameter
Instead of copy the files the "s" parameter tells the cp tool to create a symlink to the file. If a file already exists it won´t be replaced with a symlink.
That is why I copy files that need to be editable first and do a cp -sR later.
Interactive web based config creator for CS, CSS, TF2 and DODS
Creates server and client configs in an explained dialog.
You`ll also find precompiled debian gameserver kernels for download
Creates server and client configs in an explained dialog.
You`ll also find precompiled debian gameserver kernels for download