Skip to content

Commit 584dd33

Browse files
committed
Ajout chmod
Parce que pouvoir voir le fichier sans être root j'pense que c'est raisonnable.
1 parent 584d6e3 commit 584dd33

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyhilo/util/state.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ def _write_state(state_yaml: str, state: dict[str, Any] | StateDict) -> None:
129129
) as tmp:
130130
tmp.write(content)
131131
tmp_path = tmp.name
132+
os.chmod(tmp_path, 0o644)
132133
os.replace(tmp_path, state_yaml)
133134

134135

0 commit comments

Comments
 (0)