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:
Christian Hesse 2023-02-08 09:06:48 +01:00
parent d63db7ea95
commit b9eaab8e77

View file

@ -77,9 +77,9 @@ $WaitFullyConnected;
# global-config-overlay
: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");
/file/set ($FilePath . ".conf.txt") contents=[ /system/script/get global-config-overlay source ];
:set ConfigFile ($FileName . ".conf.txt");
:set Attach ($Attach, ($FilePath . ".conf.txt"));
}