diff options
author | Christian Hesse <mail@eworm.de> | 2019-07-24 11:04:31 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-07-24 11:04:31 +0200 |
commit | 5f592111682f4df7a559a2b2ea48465c5fe1d484 (patch) | |
tree | f2e3408d1cd5a891497125e06bfb070c81efcccc | |
parent | 9e3ee77a4a18badb17dfe5d199d40717cfc6036a (diff) |
email-backup: get values into array
-rw-r--r-- | email-backup | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/email-backup b/email-backup index de40520..f5b967f 100644 --- a/email-backup +++ b/email-backup @@ -30,8 +30,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={ @@ -55,8 +54,8 @@ "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 file: " . $BackupFile . "\n" . \ "Config file: " . $ConfigFile) \ file=$Attach; |