<div>I looked a little better into shell scripting and realized it after my post. I guess I should've looked into it first, sorry for "spamming".<br></div><div></div><div>I agree with setting the immutable flag in the binaries, wouldn't that solve the problem for once, no syncs/checks/etc required?</div>
<div></div><div>I mean, you could go as far as using something like tripwire on the gameserver executables, but that's kind of overkill, no?</div><div></div><br><div class="gmail_quote">On Fri, May 29, 2009 at 3:28 PM, Darren M <span dir="ltr"><<a href="mailto:darren@cpanel.net">darren@cpanel.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">> Maybe I'm misunderstanding your script, but won't the initial rm<br>
> delete the clients' dirs, thus removing the config files as well as<br>
> possible mods installed, etc?<br>
<br>
</div>The /home/users it rm's is a list created 2 lines after (or 4 lines<br>
before, depending on which one); just a safety check to be sure you<br>
aren't using an old list of users it would seem. He mentioned not<br>
having any config files in the /home/install "seed" directory to<br>
prevent overwriting users' config files. If you want to go this far<br>
howver, you may want to just set the immutable flag on the main<br>
binaries for the user as well so they can never change it.<br>
<div class="im"><br>
> > update-files.bsh<br>
> ><br>
> > #!/bin/bash<br>
> > rm -f /home/users<br>
> > chattr -R +i /home/install<br>
> > cd /home<br>
> > ls -1p|grep /|grep -v install|cut -d "/" -f1 > users<br>
> > for user in `cat users`<br>
> > do<br>
> > rsync -av /home/install/cod4 /home/$user/<br>
> > done<br>
> > rm -f /home/users<br>
> > exit $?<br>
</div><div><div class="h5">_______________________________________________<br>
cod mailing list<br>
<a href="mailto:cod@icculus.org">cod@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/cod" target="_blank">http://icculus.org/mailman/listinfo/cod</a><br>
</div></div></blockquote></div><br>