mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-15 07:22:22 +02:00
global-functions: $DownloadPackage: give url in debug output
This commit is contained in:
parent
db4afe28f0
commit
51cd11c803
1 changed files with 3 additions and 3 deletions
|
@ -278,13 +278,13 @@
|
||||||
$LogPrintExit2 error $0 ("Downloading required certificate failed.") true;
|
$LogPrintExit2 error $0 ("Downloading required certificate failed.") true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:local Url ("https://upgrade.mikrotik.com/routeros/" . $PkgVer . "/" . $PkgFile);
|
||||||
$LogPrintExit2 info $0 ("Downloading package file '" . $PkgName . "'...") false;
|
$LogPrintExit2 info $0 ("Downloading package file '" . $PkgName . "'...") false;
|
||||||
|
$LogPrintExit2 debug $0 ("... from url: " . $Url) false;
|
||||||
:local Retry 3;
|
:local Retry 3;
|
||||||
:while ($Retry > 0) do={
|
:while ($Retry > 0) do={
|
||||||
:do {
|
:do {
|
||||||
/ tool fetch check-certificate=yes-without-crl \
|
/ tool fetch check-certificate=yes-without-crl $Url dst-path=$PkgDest;
|
||||||
("https://upgrade.mikrotik.com/routeros/" . $PkgVer . "/" . $PkgFile) \
|
|
||||||
dst-path=$PkgDest;
|
|
||||||
$WaitForFile $PkgDest;
|
$WaitForFile $PkgDest;
|
||||||
|
|
||||||
:if ([ / file get [ find where name=$PkgDest ] type ] = "package") do={
|
:if ([ / file get [ find where name=$PkgDest ] type ] = "package") do={
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue