aboutsummaryrefslogtreecommitdiffstats
path: root/backup-upload.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-11-22 21:17:44 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-11-22 21:17:44 +0100
commitb75b0bf6bea8ed02cab0db32e948ea0f7de13d08 (patch)
treedc0bba9547927c8a7691a0346bd40fa560e923ad /backup-upload.rsc
parent11daef75f033443e1b15beadb5b74985db4f5812 (diff)
backup-upload: get rid of '.txt' file extension
Diffstat (limited to 'backup-upload.rsc')
-rw-r--r--backup-upload.rsc8
1 files changed, 4 insertions, 4 deletions
diff --git a/backup-upload.rsc b/backup-upload.rsc
index 5c5e37e..02916c6 100644
--- a/backup-upload.rsc
+++ b/backup-upload.rsc
@@ -103,12 +103,12 @@ $WaitFullyConnected;
:if ($BackupSendGlobalConfig = true) do={
# Do *NOT* use '/file/add ...' here, as it is limited to 4095 bytes!
:execute script={ :put [ /system/script/get global-config-overlay source ]; } \
- file=($FilePath . ".conf");
- $WaitForFile ($FilePath . ".conf.txt");
+ file=($FilePath . ".conf\00");
+ $WaitForFile ($FilePath . ".conf");
:do {
/tool/fetch upload=yes url=($BackupUploadUrl . "/" . $FileName . ".conf") \
- user=$BackupUploadUser password=$BackupUploadPass src-path=($FilePath . ".conf.txt");
+ user=$BackupUploadUser password=$BackupUploadPass src-path=($FilePath . ".conf");
:set ConfigFile [ /file/get ($FilePath . ".conf") ];
:set ($ConfigFile->"name") ($FileName . ".conf");
} on-error={
@@ -117,7 +117,7 @@ $WaitFullyConnected;
:set Failed 1;
}
- /file/remove ($FilePath . ".conf.txt");
+ /file/remove ($FilePath . ".conf");
}
:local FileInfo do={