fix params permissions after #1890

This commit is contained in:
Adeeb Shihadeh
2020-07-18 18:10:46 -07:00
parent a34b9f5cb5
commit 8db641efec
+1
View File
@@ -324,6 +324,7 @@ def write_db(params_path, key, value):
f.write(value)
f.flush()
os.fsync(f.fileno())
os.chmod(tmp_path.name, 0o666)
path = "%s/d/%s" % (params_path, key)
os.rename(tmp_path.name, path)