1
Fork 0
satellite/scripts/setup-rsync-ssh.sh
prescientmoon 1e511f9e04
Too many changes
- edopro
- fix resstic & rsync setup
- prepare lapetus redeploy
- ...more I forgot about

(should've commited more times...)
2024-10-11 12:16:46 +02:00

13 lines
259 B
Bash
Executable file

#!/usr/bin/env bash
# Create tmp file
tmpfile=$(mktemp)
# Concat files
cat hosts/nixos/*/keys/*.pub > $tmpfile
# Copy concat result
scp $tmpfile $(cat hosts/nixos/common/optional/services/restic/url.txt):.ssh/authorized_keys
# Cleanup file
rm -rf $tmpfile