mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-26 05:44:39 +02:00
cloud-backup: use $LogPrintExit
This commit is contained in:
parent
1f1fef9fb5
commit
03ae65c5f1
1 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
||||||
:global Identity;
|
:global Identity;
|
||||||
|
|
||||||
:global DeviceInfo;
|
:global DeviceInfo;
|
||||||
|
:global LogPrintExit;
|
||||||
:global SendNotification;
|
:global SendNotification;
|
||||||
|
|
||||||
:do {
|
:do {
|
||||||
|
@ -31,5 +32,5 @@
|
||||||
"Size: " . $Cloud->"size" . "\n" . \
|
"Size: " . $Cloud->"size" . "\n" . \
|
||||||
"Download key: " . $Cloud->"secret-download-key") "" "true";
|
"Download key: " . $Cloud->"secret-download-key") "" "true";
|
||||||
} on-error={
|
} on-error={
|
||||||
:log error ("Failed uploading backup for " . $Identity . " to cloud.");
|
$LogPrintExit error ("Failed uploading backup for " . $Identity . " to cloud.") false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue