backup-email: switch path to tmpfs

This commit is contained in:
Christian Hesse 2022-12-12 15:27:00 +01:00
parent f8258b90a7
commit d3351bcf18

View file

@ -46,13 +46,14 @@ $WaitFullyConnected;
}
# filename based on identity
:local DirName ("tmpfs/" . $0);
:local FileName [ $CharacterReplace ($Identity . "." . $Domain) "." "_" ];
:local FilePath ($0 . "/" . $FileName);
:local FilePath ($DirName . "/" . $FileName);
:local BackupFile "none";
:local ConfigFile "none";
:local Attach ({});
:if ([ $MkDir $0 ] = false) do={
:if ([ $MkDir $DirName ] = false) do={
$LogPrintExit2 error $0 ("Failed creating directory!") true;
}