aboutsummaryrefslogtreecommitdiffstats
path: root/upload-backup
diff options
context:
space:
mode:
Diffstat (limited to 'upload-backup')
-rw-r--r--upload-backup7
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);
}