aboutsummaryrefslogtreecommitdiffstats
path: root/backup-email
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-02-08 09:06:48 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-02-08 09:14:02 +0100
commitb9eaab8e77d906be7bc71d13a979d4f1b14ce038 (patch)
tree45b06d80706c1cddedfb968a5f481a69d92d1e6b /backup-email
parentd63db7ea9528271f242fb1845841a6fac14da771 (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.
Diffstat (limited to 'backup-email')
-rw-r--r--backup-email4
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"));
}