Set world-readable permissions on alert file
Change-Id: Iaaea474d064479b2732deddd124fba02670ca4d8
This commit is contained in:
parent
ab953f9fdc
commit
a104892265
|
@ -166,6 +166,7 @@ class AlertFile(UpdateInterface):
|
|||
f, path = tempfile.mkstemp(dir=self.dir)
|
||||
os.write(f, json.dumps(dict(alert=msg)))
|
||||
os.close(f)
|
||||
os.chmod(path, 0o644)
|
||||
os.rename(path, self.path)
|
||||
|
||||
def alert(self, msg=None):
|
||||
|
|
Loading…
Reference in New Issue