Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrwtsn32x <rodney@savard.org>2019-10-05 16:20:57 +0300
committerdrwtsn32x <rodney@savard.org>2019-10-05 16:20:57 +0300
commitfa822638653cb746d3f7765dbe36f33b4a778e23 (patch)
tree85a5298c42bb600b2b930804ab4e0d56cee57bd0 /Duplicati/CommandLine
parent85f6565013d6b7c70d0e0e2518bce85c7ecb0d8f (diff)
read tempdir command line option
Diffstat (limited to 'Duplicati/CommandLine')
-rw-r--r--Duplicati/CommandLine/Program.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Duplicati/CommandLine/Program.cs b/Duplicati/CommandLine/Program.cs
index 517cb0402..ab81fc942 100644
--- a/Duplicati/CommandLine/Program.cs
+++ b/Duplicati/CommandLine/Program.cs
@@ -179,6 +179,9 @@ namespace Duplicati.CommandLine
if (!string.IsNullOrEmpty(System.Environment.GetEnvironmentVariable("AUTH_USERNAME")))
options["auth-username"] = System.Environment.GetEnvironmentVariable("AUTH_USERNAME");
+ if (options.ContainsKey("tempdir") && !string.IsNullOrEmpty(options["tempdir"]))
+ Library.Utility.SystemContextSettings.DefaultTempPath = options["tempdir"];
+
var showDeletionErrors = verboseErrors;
Duplicati.Library.Utility.TempFile.RemoveOldApplicationTempFiles((path, ex) =>
{