mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-30 13:14:27 +02:00
backup-email: use :use inside :execute for global-config-overlay
This will add carriage return and line feed, but works around the limitation of reading just four kilobytes from file.
This commit is contained in:
parent
d63db7ea95
commit
b9eaab8e77
1 changed files with 2 additions and 2 deletions
|
@ -77,9 +77,9 @@ $WaitFullyConnected;
|
||||||
|
|
||||||
# global-config-overlay
|
# global-config-overlay
|
||||||
:if ($BackupSendGlobalConfig = true) do={
|
:if ($BackupSendGlobalConfig = true) do={
|
||||||
:execute script={ / } file=($FilePath . ".conf");
|
:execute script={ :put [ /system/script/get global-config-overlay source ]; } \
|
||||||
|
file=($FilePath . ".conf");
|
||||||
$WaitForFile ($FilePath . ".conf.txt");
|
$WaitForFile ($FilePath . ".conf.txt");
|
||||||
/file/set ($FilePath . ".conf.txt") contents=[ /system/script/get global-config-overlay source ];
|
|
||||||
:set ConfigFile ($FileName . ".conf.txt");
|
:set ConfigFile ($FileName . ".conf.txt");
|
||||||
:set Attach ($Attach, ($FilePath . ".conf.txt"));
|
:set Attach ($Attach, ($FilePath . ".conf.txt"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue