aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-02-08 09:11:34 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-02-08 09:14:02 +0100
commit818638d0f48e7e9cac275933a8cbb09ca119815b (patch)
tree9f1f53047254f5716499fbb55fdfc8b2d9c3edd0
parentb9eaab8e77d906be7bc71d13a979d4f1b14ce038 (diff)
backup-upload: use :use inside :execute for global-config-overlay
-rw-r--r--backup-upload4
1 files changed, 2 insertions, 2 deletions
diff --git a/backup-upload b/backup-upload
index 4fe9535..4c09d4a 100644
--- a/backup-upload
+++ b/backup-upload
@@ -97,9 +97,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 ];
:do {
/tool/fetch upload=yes url=($BackupUploadUrl . "/" . $FileName . ".conf") \