[Dxspider-support] New version of check_build.pl and others
Kin
ea3cv at cronux.net
Tue Feb 7 09:35:33 GMT 2023
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20230207/82b401e9/attachment.htm>
More information about the Dxspider-support
mailing list