[Dxspider-support] New version of check_build.pl and others
Kin
ea3cv at cronux.net
Tue Feb 7 15:29:20 GMT 2023
Solved.
Your git was responding to a string that never appeared to me during testing.
Your script has been modified and I've uploaded it again with the modification.
Kin EA3CV
De: Dxspider-support <dxspider-support-bounces at tobit.co.uk> En nombre de Keith Maton via Dxspider-support
Enviado el: martes, 7 de febrero de 2023 13:20
Para: The DXSpider Support list <dxspider-support at tobit.co.uk>
CC: Keith Maton <g6nhu at me.com>
Asunto: Re: [Dxspider-support] New version of check_build.pl and others
Just ran check_build from within console again, once again it restarted the node, this is what’s in the debug log.
1675772232^RING: 12:17:11^(chan) -> D G6NHU There is a new build
1675772232 is Tuesday Feb 07 2023 12:17:12 so just a few seconds ago.
On 7 Feb 2023, at 12:15, Keith Maton via Dxspider-support <dxspider-support at tobit.co.uk <mailto:dxspider-support at tobit.co.uk> > wrote:
Doh. I normally do everything as sysop but for some reason, I’d SUd to Pi when I ran that command.
Just done it again, see below.
But I can confirm that when I logged into the console and ran check_build, I was logged in as sysop.
sysop at dx-spider-mojo:/spider $ git remote show origin
* remote origin
Fetch URL: git://scm.dxcluster.org/scm/spider
Push URL: git://scm.dxcluster.org/scm/spider
HEAD branch: master
Remote branches:
1.53 tracked
Aranea1 tracked
NEW_ROUTE tracked
NewRoute tracked
PC90-2 tracked
SIMPLEROUTE tracked
anyevent tracked
backportdxprot tracked
cachespots tracked
contchat tracked
ip_address tracked
legacy-1.53 tracked
master tracked
mojo tracked
multiconnect tracked
new-spawn tracked
newdisc tracked
newpc92timings tracked
newprot tracked
newprot2 tracked
newusers tracked
origin tracked
spider tracked
spider2 tracked
staging tracked
users.v3j tracked
wpxloc.dat tracked
Local branches configured for 'git pull':
master merges with remote master
mojo merges with remote mojo
Local refs configured for 'git push':
master pushes to master (local out of date)
mojo pushes to mojo (up to date)
On 7 Feb 2023, at 11:28, Kin <ea3cv at cronux.net <mailto:ea3cv at cronux.net> > wrote:
What this message indicates is that the directory (and/or more items) has a different owner.
I assume you are running it as user sysop the command I gave you?
Kin
De: Keith Maton <g6nhu at me.com <mailto:g6nhu at me.com> >
Enviado el: martes, 7 de febrero de 2023 11:57
Para: The DXSpider Support list <dxspider-support at tobit.co.uk <mailto:dxspider-support at tobit.co.uk> >
CC: Kin <ea3cv at cronux.net <mailto:ea3cv at cronux.net> >
Asunto: Re: [Dxspider-support] New version of check_build.pl and others
I’ve just installed this version and when I ran it, according to the debug log, there’s a new build. The cluster was restarted.
I checked and I’m running build 497.
Ran it again and again, according to the debug log, there’s a new build. The cluster was restarted.
I’m still running build 497.
So it seems a little enthusiastic :)
pi at dx-spider-mojo:/home/sysop/spider $ grep -E "[no|a] new build" /spider/local_data/debug/2023/038.dat
1675767185^RING: 10:53:00^(chan) -> D G6NHU There is a new build
1675767253^RING: 10:54:13^(chan) -> D G6NHU There is a new build
On 7 Feb 2023, at 09:35, Kin via Dxspider-support <dxspider-support at tobit.co.uk <mailto:dxspider-support at tobit.co.uk> > wrote:
Hi,
1. Modifications to check_build.pl script
* Before doing a possible git pull, the possible commit is checked.
* Backup is only triggered if dxspider is updated
* The backup directory is moved to /home/sysop/spider.backup
Note: Only for Mojo version > build 495
File::Copy::Recursive has to be installed
Debian (or similar): apt install libfile-copy-recursive-perl
Alternative: cpan install File::Copy::Recursive
Run from the dxspider terminal or the crontab
Can be automated with crontab i.e.
0 1 * * 1,2,3,4,5 run_cmd("check_build Y")
0 1 * * 1,2,3,4,5 run_cmd("check_build")
2. New script undo_newbuild.pl
This utility is used to undo the last update in case of problems.
It is located in /spider/local_cmd.
Run from the dxspider terminal or crontab
3. Improved update_ip.pl script
* Create variables (if they don't exist) in /spider/scripts/startup
* Modify the variables in /spider/scripts/startup
Note: Only for Mojo version > build 495
Path::Tiny must be installed
Debian (or similar): apt install libpath-tiny-perl
Alternative: cpanm install Path::Tiny
Run from the dxspider terminal or the crontab
Can be automated with crontab i.e.
00,10,20,30,40,50 * * * * run_cmd("update_ip")
Everything has been tested on Debian and Ubuntu with success.
https://www.dropbox.com/s/8j1xdoinqwomr50/check_build.pl?dl=0
73 de Kin EA3CV
_______________________________________________
Dxspider-support mailing list
<mailto:Dxspider-support at tobit.co.uk> Dxspider-support at tobit.co.uk
<https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support> https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
_______________________________________________
Dxspider-support mailing list
Dxspider-support at tobit.co.uk <mailto:Dxspider-support at tobit.co.uk>
https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20230207/64770b54/attachment-0001.htm>
More information about the Dxspider-support
mailing list