diff options
author | Christian Hesse <mail@eworm.de> | 2019-07-24 11:06:50 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-07-24 11:06:50 +0200 |
commit | 55313b4841e0ce643cc640cae4f98fc83ce67152 (patch) | |
tree | 7fb3b9cfd527e94fba65a647590243c9908371ec /upload-backup | |
parent | 1020db0b31e32e9b628fd0b1a7b9c74783e90a45 (diff) |
upload-backup: get values into array
Diffstat (limited to 'upload-backup')
-rw-r--r-- | upload-backup | 7 |
1 files changed, 3 insertions, 4 deletions
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); } |