copy-secrets: use rsync command like in rsyncfiles
This commit is contained in:
parent
b8dab2b12b
commit
a9aaf3c9b1
@ -21,7 +21,12 @@ retiolum_uid=$(nixos-query $system_name users.extraUsers.retiolum-tinc.uid)
|
||||
ejabberd_secret=$(nixos-query $system_name services.ejabberd-cd.certFile)
|
||||
ejabberd_uid=$(nixos-query $system_name users.extraUsers.ejabberd.uid)
|
||||
|
||||
rsync -cz --chown=0:0 -vr "$secrets_rsync/" "$target:/"
|
||||
(set -x
|
||||
rsync \
|
||||
--rsync-path="mkdir -p \"$2\" && rsync" \
|
||||
-vzrlptD \
|
||||
"$secrets_rsync/" \
|
||||
"$target:/")
|
||||
|
||||
ssh "$target" -T <<EOF
|
||||
set -euf
|
||||
|
Loading…
Reference in New Issue
Block a user