[IMP] chmod data-dir
bzr revid: chs@openerp.com-20140116164406-p2gtb2uziwhchp68
This commit is contained in:
parent
db10e1d3a5
commit
c48f11041b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue