mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
backup-upload: use :use inside :execute for global-config-overlay
This commit is contained in:
parent
b9eaab8e77
commit
818638d0f4
|
@ -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") \
|
||||
|
|
Loading…
Reference in a new issue