From b9eaab8e77d906be7bc71d13a979d4f1b14ce038 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 8 Feb 2023 09:06:48 +0100 Subject: 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. --- backup-email | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup-email b/backup-email index 50c5ce5..ba12494 100644 --- a/backup-email +++ b/backup-email @@ -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")); } -- cgit v1.2.3-54-g00ecf