mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-24 10:38:41 +02:00
check-routeros-update: run email-backup on auto-update
This commit is contained in:
parent
29d47361b7
commit
eda4d10c0a
1 changed files with 3 additions and 0 deletions
|
@ -36,6 +36,9 @@
|
|||
:log warning ("Failed receiving safe version for " . $Channel . ".");
|
||||
}
|
||||
:if ($Result->"status" = "finished" && $Result->"data" = $LatestVersion) do={
|
||||
:if ([ / system script print count-only where name="email-backup" ] > 0) do={
|
||||
/ system script run email-backup;
|
||||
}
|
||||
:log info ("Version " . $LatestVersion . " is considered safe, updating...");
|
||||
$SendNotification ("RouterOS update notification") \
|
||||
("Version " . $LatestVersion . " is considered safe for " . $Channel . \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue