prescientmoon
1e511f9e04
- edopro - fix resstic & rsync setup - prepare lapetus redeploy - ...more I forgot about (should've commited more times...)
13 lines
259 B
Bash
Executable file
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
|