diff options
author | Christian Hesse <mail@eworm.de> | 2023-02-08 09:06:48 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-02-08 09:14:02 +0100 |
commit | b9eaab8e77d906be7bc71d13a979d4f1b14ce038 (patch) | |
tree | 45b06d80706c1cddedfb968a5f481a69d92d1e6b | |
parent | d63db7ea9528271f242fb1845841a6fac14da771 (diff) |
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.
-rw-r--r-- | backup-email | 4 |
1 files 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")); } |