forked from clan/clan-core
clan_cli secrets_upload: fix permissions
This commit is contained in:
parent
8f58f1998d
commit
da8a733899
@ -33,6 +33,8 @@ def upload_secrets(machine: Machine) -> None:
|
|||||||
" ".join(["ssh"] + ssh_cmd[2:]),
|
" ".join(["ssh"] + ssh_cmd[2:]),
|
||||||
"-az",
|
"-az",
|
||||||
"--delete",
|
"--delete",
|
||||||
|
"--chown=root:root",
|
||||||
|
"--chmod=D700,F600",
|
||||||
f"{tempdir!s}/",
|
f"{tempdir!s}/",
|
||||||
f"{host.user}@{host.host}:{machine.secrets_upload_directory}/",
|
f"{host.user}@{host.host}:{machine.secrets_upload_directory}/",
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user