diff options
author | Michael Wood <michael.g.wood@intel.com> | 2016-01-08 11:26:19 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-08 23:04:07 +0000 |
commit | 5207abdf58019271bf92bff4bcce3911b8691508 (patch) | |
tree | 54d18785c9e56829fbf312e6d255f770c228ce77 /lib/toaster/toastermain/settings.py | |
parent | c7bb98e2e2111790ded86087b13c8b49462d6b75 (diff) | |
download | bitbake-contrib-5207abdf58019271bf92bff4bcce3911b8691508.tar.gz |
toaster: settings Add uid to the toaster cache dir
Make the default toaster cache dir unique to the user running
toaster. If we have multiple users running toaster we previously
got a permission denied exception on saving a cache file.
[YOCTO #8782]
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/toaster/toastermain/settings.py')
-rw-r--r-- | lib/toaster/toastermain/settings.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/toaster/toastermain/settings.py b/lib/toaster/toastermain/settings.py index b6bdcd8e3..74103f306 100644 --- a/lib/toaster/toastermain/settings.py +++ b/lib/toaster/toastermain/settings.py @@ -229,7 +229,7 @@ CACHES = { # }, 'default': { 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache', - 'LOCATION': '/tmp/django-default-cache', + 'LOCATION': '/tmp/toaster_cache_%d' % os.getuid(), 'TIMEOUT': 1, } } |