fixed permissions bug
parent
cee542e3b3
commit
c1041b9902
|
@ -43,6 +43,7 @@ def _write_data(dictionary):
|
||||||
|
|
||||||
if permission == "w+" and os.path.isdir(managerIPCDir) is False:
|
if permission == "w+" and os.path.isdir(managerIPCDir) is False:
|
||||||
os.makedirs(managerIPCDir)
|
os.makedirs(managerIPCDir)
|
||||||
|
os.chmod(managerIPCDir, 0777)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open(path, permission) as dispFile:
|
with open(path, permission) as dispFile:
|
||||||
|
@ -62,6 +63,8 @@ def _write_data(dictionary):
|
||||||
dispFile.write(json.dumps(data))
|
dispFile.write(json.dumps(data))
|
||||||
dispFile.truncate()
|
dispFile.truncate()
|
||||||
|
|
||||||
|
os.chmod(path, 0777)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
LOG.error(e)
|
LOG.error(e)
|
||||||
LOG.error("Error found in display manager file, deleting...")
|
LOG.error("Error found in display manager file, deleting...")
|
||||||
|
|
Loading…
Reference in New Issue