[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [rbm/master] If the TMPDIR env var exists, use it instead of /tmp



commit af970a558f122acaba080e0b015e3293f74509fb
Author: Nicolas Vigier <boklm@xxxxxxxxxxxxxx>
Date:   Sun Feb 12 23:24:09 2017 +0100

    If the TMPDIR env var exists, use it instead of /tmp
---
 lib/RBM/DefaultConfig.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/RBM/DefaultConfig.pm b/lib/RBM/DefaultConfig.pm
index 8eaf9dd..8172f04 100644
--- a/lib/RBM/DefaultConfig.pm
+++ b/lib/RBM/DefaultConfig.pm
@@ -103,7 +103,7 @@ sub docker_version {
 
 our %default_config = (
     sysconf_file  => '/etc/rbm.conf',
-    tmp_dir       => '/tmp',
+    tmp_dir       => '[% GET ENV.TMPDIR ? ENV.TMPDIR : "/tmp"; %]',
     projects_dir  => 'projects',
     output_dir    => 'out',
     git_clone_dir => 'git_clones',

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits