[IMP] chmod data-dir

bzr revid: chs@openerp.com-20140116164406-p2gtb2uziwhchp68
This commit is contained in:
Christophe Simonis 2014-01-16 17:44:06 +01:00
parent db10e1d3a5
commit c48f11041b
1 changed files with 6 additions and 2 deletions

View File

@ -628,14 +628,18 @@ class configmanager(object):
def addons_data_dir(self):
d = os.path.join(self['data_dir'], 'addons', release.series)
if not os.path.exists(d):
os.makedirs(d)
os.makedirs(d, 0700)
else:
os.chmod(d, 0700)
return d
@property
def session_dir(self):
d = os.path.join(self['data_dir'], 'sessions', release.series)
if not os.path.exists(d):
os.makedirs(d)
os.makedirs(d, 0700)
else:
os.chmod(d, 0700)
return d
config = configmanager()