fix params permissions after #1890

old-commit-hash: 8db641efec5d3c4df284afd9b8c8e9c2838ccabb
This commit is contained in:
Adeeb Shihadeh
2020-07-18 18:10:46 -07:00
parent 9b94e0ae8b
commit 2e066f16e8
+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)