aboutsummaryrefslogtreecommitdiffstats
path: root/backup-email.rsc
diff options
context:
space:
mode:
Diffstat (limited to 'backup-email.rsc')
-rw-r--r--backup-email.rsc10
1 files changed, 5 insertions, 5 deletions
diff --git a/backup-email.rsc b/backup-email.rsc
index 5eb4fcc..4dd9fcc 100644
--- a/backup-email.rsc
+++ b/backup-email.rsc
@@ -80,11 +80,11 @@ $WaitFullyConnected;
# global-config-overlay
:if ($BackupSendGlobalConfig = true) do={
- :execute script={ :put [ /system/script/get global-config-overlay source ]; } \
- file=($FilePath . ".conf");
- $WaitForFile ($FilePath . ".conf.txt");
- :set ConfigFile ($FileName . ".conf.txt");
- :set Attach ($Attach, ($FilePath . ".conf.txt"));
+ :local Config [ /system/script/get global-config-overlay source ];
+ /file/add name=($FilePath . ".conf") contents=$Config;
+ $WaitForFile ($FilePath . ".conf");
+ :set ConfigFile ($FileName . ".conf");
+ :set Attach ($Attach, ($FilePath . ".conf"));
}
# send email with status and files