1
Fork 0
satellite/scripts/setup-rsync-ssh.sh

10 lines
259 B
Bash
Raw Normal View History

2024-05-30 02:35:16 +02:00
#!/usr/bin/env bash
2024-05-30 02:52:46 +02:00
# Create tmp file
tmpfile=$(mktemp)
# Concat files
cat hosts/nixos/*/keys/id_*.pub > $tmpfile
# Copy concat result
scp $tmpfile $(cat hosts/nixos/common/optional/services/restic/url.txt):.ssh/authorized_keys
# Cleanup file
rm -rf $tmpfile