Fille permission fix

This commit is contained in:
htmltiger 2021-12-19 04:12:53 +00:00 committed by GitHub
parent 73d2055a20
commit d9185fabf4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,7 @@ async def websocket_create(hass, connection, msg):
os.makedirs(dirnm, exist_ok=True)
with AtomicWriter(fullpath, overwrite=True).open() as fdesc:
try:
os.fchmod(fdesc.fileno(), 0o644)
os.fchmod(fdesc.fileno(), 0o666)
except:
pass
fdesc.write(content)