install-ssh-*: Pass -a to rsync to preserve rights, owners, and times.

This commit is contained in:
Alex Vandiver 2024-02-02 14:30:53 -05:00 committed by Tim Abbott
parent 0bd1e2b434
commit f8a9edc382
2 changed files with 2 additions and 2 deletions

View File

@ -26,4 +26,4 @@ if [ "$#" -gt 2 ]; then
exit 0
fi
rsync -v "$workfile" "$sshdir/authorized_keys"
rsync -av "$workfile" "$sshdir/authorized_keys"

View File

@ -34,6 +34,6 @@ if [ "$#" -gt 2 ]; then
exit 0
fi
rsync -rv --delete \
rsync -av --delete \
--exclude config --exclude authorized_keys --exclude known_hosts \
"$workdir/" "$sshdir/"