From 3944103f5b07edfcefab6765d91574f8834257bb Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: May 18 2015 12:06:30 +0000 Subject: Provide a way to set the temp dir in the wsgi file directly This allows overriding the system's default to work around the bugs mentioned in libgit2 --- diff --git a/files/pagure.wsgi b/files/pagure.wsgi index 91bba6e..a7da5fd 100644 --- a/files/pagure.wsgi +++ b/files/pagure.wsgi @@ -11,6 +11,12 @@ ## Set the environment variable pointing to the configuration file #os.environ['PAGURE_CONFIG'] = '/etc/pagure/pagure.cfg' +## Set the environment variable if the tmp folder needs to be moved +## Might be necessary to work around bug in libgit2: +## refs: https://github.com/libgit2/libgit2/issues/2965 +## and https://github.com/libgit2/libgit2/issues/2797 +#os.environ['TEMP'] = '/var/tmp/' + ## The following is only needed if you did not install pagure ## as a python module (for example if you run it from a git clone). #import sys