From 55313b4841e0ce643cc640cae4f98fc83ce67152 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 24 Jul 2019 11:06:50 +0200 Subject: upload-backup: get values into array --- upload-backup | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'upload-backup') diff --git a/upload-backup b/upload-backup index da2a5d7..31efce7 100644 --- a/upload-backup +++ b/upload-backup @@ -31,8 +31,7 @@ :local BoardName [ / system resource get board-name ]; :local Model [ / system routerboard get model ]; :local SerialNumber [ / system routerboard get serial-number ]; -:local Channel [ / system package update get channel ]; -:local InstalledVersion [ / system package update get installed-version ]; +:local Update [ / system package update get ]; # binary backup :if ($BackupSendBinary = true) do={ @@ -68,8 +67,8 @@ $SendNotification "Backup & Config Upload" \ "Model: " . $Model . "\n" . \ "Serial number: " . $SerialNumber . "\n" . \ "Hostname: " . $Identity . "\n" . \ - "Channel: " . $Channel . "\n" . \ - "RouterOS: " . $InstalledVersion . "\n\n" . \ + "Channel: " . $Update->"channel" . "\n" . \ + "RouterOS: " . $Update->"installed-version" . "\n\n" . \ "Backup uploaded: " . $BackupFile . "\n" . \ "Config uploaded: " . $ConfigFile); } -- cgit v1.2.3-70-g09d2