<p dir="ltr">Thanks for your clarification. <br>
I add that command too!</p>
<div class="gmail_quote">Il 25/nov/2014 18:02 "Dirk Koopman" <<a href="mailto:djk@tobit.co.uk">djk@tobit.co.uk</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Because it removes any inadvertent changes to any files that are in version control (it doesn't alter any other files).<br>
<br>
I don't always update cty.dat in a timely fashion and some sysops don't want to update the software, but DO want the latest prefixes. So these sysops just update cty.dat and wpxloc.raw and run <a href="http://create_prefix.pl" target="_blank">create_prefix.pl</a> manually.<br>
<br>
If, sometime in the future, they try a git pull, it will moan and groan about all the "local changes" and fail. Doing the 'git reset --hard' undoes those prefix changes and the git pull will then succeed.<br>
<br>
I really must get around to moving stuff about so that there is a "local_data" directory, in the same way as there are "local" and "local_cmd" directories. The problem with this is that I suspect that there will be things that could break in some nodes that have used the opensource nature of the code and done their own thing - expecting stuff to be where it has always been.<br>
<br>
Dirk<br>
<br>
On 25/11/14 16:13, Fabrizio Alberti wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Why you also the git reset command too?<br>
<br>
Inviato da cellulare<br>
<br>
Il 25/nov/2014 17:10 "Dirk Koopman" <<a href="mailto:djk@tobit.co.uk" target="_blank">djk@tobit.co.uk</a><br>
<mailto:<a href="mailto:djk@tobit.co.uk" target="_blank">djk@tobit.co.uk</a>>> ha scritto:<br>
<br>
    Mike & Fabrizio<br>
<br>
    I agree that it is probably not a good idea to have an automatic<br>
    update as source control can go wrong, particularly if one ever does<br>
    any mods or updates the prefix list manually.<br>
<br>
    But if I were doing it, bearing in mind that I don't use a httpd<br>
    interface nor copy my spots into a database, and that also I don't<br>
    do any (unofficial [cough] :-) mods, then this line of cron may help<br>
    you:<br>
<br>
    13 3 * * 2 cd /spider; git reset --hard; git pull; service dxspider<br>
    restart<br>
<br>
</blockquote>
<br>
<snip><br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Dxspider-support mailing list<br>
<a href="mailto:Dxspider-support@dxcluster.org" target="_blank">Dxspider-support@dxcluster.org</a><br>
<a href="http://mailman.tobit.co.uk/mailman/listinfo/dxspider-support" target="_blank">http://mailman.tobit.co.uk/<u></u>mailman/listinfo/dxspider-<u></u>support</a><br>
</blockquote></div>