aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-12-12 15:27:00 +0100
committerGravatar Christian Hesse <mail@eworm.de>2022-12-13 21:50:32 +0100
commitd3351bcf1839757ac677924c6c161c914db467ad (patch)
tree91ab5c7b54316dec3a0ccdd687ca9fbc5c12a686
parentf8258b90a7ea23b81c8e05cae4cfdaa325996e6d (diff)
backup-email: switch path to tmpfs
-rw-r--r--backup-email5
1 files changed, 3 insertions, 2 deletions
diff --git a/backup-email b/backup-email
index 70db237..339c5a4 100644
--- a/backup-email
+++ b/backup-email
@@ -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;
}