aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-01-18 11:08:11 +0100
committerGravatar Christian Hesse <mail@eworm.de>2019-01-18 11:08:11 +0100
commiteda4d10c0a5b9f798c6a3caa8bb6d11dc935d41b (patch)
treec937a764910881d6c47b0a82886bf443875f2b43
parent29d47361b714fdb270353f6e9dc43c0eb800c0ff (diff)
check-routeros-update: run email-backup on auto-update
-rw-r--r--check-routeros-update3
1 files changed, 3 insertions, 0 deletions
diff --git a/check-routeros-update b/check-routeros-update
index 3564a09..22ef934 100644
--- a/check-routeros-update
+++ b/check-routeros-update
@@ -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 . \