mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-14 06:58:50 +02:00
backup-email: switch path to tmpfs
This commit is contained in:
parent
f8258b90a7
commit
d3351bcf18
1 changed files with 3 additions and 2 deletions
|
@ -46,13 +46,14 @@ $WaitFullyConnected;
|
||||||
}
|
}
|
||||||
|
|
||||||
# filename based on identity
|
# filename based on identity
|
||||||
|
:local DirName ("tmpfs/" . $0);
|
||||||
:local FileName [ $CharacterReplace ($Identity . "." . $Domain) "." "_" ];
|
:local FileName [ $CharacterReplace ($Identity . "." . $Domain) "." "_" ];
|
||||||
:local FilePath ($0 . "/" . $FileName);
|
:local FilePath ($DirName . "/" . $FileName);
|
||||||
:local BackupFile "none";
|
:local BackupFile "none";
|
||||||
:local ConfigFile "none";
|
:local ConfigFile "none";
|
||||||
:local Attach ({});
|
:local Attach ({});
|
||||||
|
|
||||||
:if ([ $MkDir $0 ] = false) do={
|
:if ([ $MkDir $DirName ] = false) do={
|
||||||
$LogPrintExit2 error $0 ("Failed creating directory!") true;
|
$LogPrintExit2 error $0 ("Failed creating directory!") true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue