mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-10 18:14:27 +02:00
backup-email: get rid of '.txt' file extension
This commit is contained in:
parent
b75b0bf6be
commit
d1abbede75
1 changed files with 4 additions and 4 deletions
|
@ -82,10 +82,10 @@ $WaitFullyConnected;
|
||||||
:if ($BackupSendGlobalConfig = true) do={
|
:if ($BackupSendGlobalConfig = true) do={
|
||||||
# Do *NOT* use '/file/add ...' here, as it is limited to 4095 bytes!
|
# Do *NOT* use '/file/add ...' here, as it is limited to 4095 bytes!
|
||||||
:execute script={ :put [ /system/script/get global-config-overlay source ]; } \
|
:execute script={ :put [ /system/script/get global-config-overlay source ]; } \
|
||||||
file=($FilePath . ".conf");
|
file=($FilePath . ".conf\00");
|
||||||
$WaitForFile ($FilePath . ".conf.txt");
|
$WaitForFile ($FilePath . ".conf");
|
||||||
:set ConfigFile ($FileName . ".conf.txt");
|
:set ConfigFile ($FileName . ".conf");
|
||||||
:set Attach ($Attach, ($FilePath . ".conf.txt"));
|
:set Attach ($Attach, ($FilePath . ".conf"));
|
||||||
}
|
}
|
||||||
|
|
||||||
# send email with status and files
|
# send email with status and files
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue