diff options
author | EuAndreh <eu@euandre.org> | 2023-03-20 09:37:34 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-20 09:37:34 -0300 |
commit | a3410fbc485e09fd11247f0309c32b0e3026f8bd (patch) | |
tree | f41536e7ffebc1b26a46d61807a7f6a9b0a5c79e /Makefile | |
parent | system.scm: Use correct rottlog config (diff) | |
download | toph-a3410fbc485e09fd11247f0309c32b0e3026f8bd.tar.gz toph-a3410fbc485e09fd11247f0309c32b0e3026f8bd.tar.xz |
Makefile: Also upload managed SSH known_hosts file
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -48,13 +48,17 @@ $(public-ssh).stripped: $(public-ssh).txt cut -d' ' -f6- < $(public-ssh).txt > $@ -upload-secrets: $(prod-secrets.txt) $(public-ssh).stripped +upload-secrets: $(prod-secrets.txt) $(public-ssh).stripped \ + src/infrastructure/keys/known_hosts.txt ssh euandre.org sudo -u secrets-keeper 'rm -f /opt/secrets/*' rsync \ --rsync-path='sudo -u secrets-keeper rsync' \ --chmod=000 \ -avzP \ - $(prod-secrets.txt) $(public-ssh).stripped euandre.org:/opt/secrets/ + $(prod-secrets.txt) \ + $(public-ssh).stripped \ + src/infrastructure/keys/known_hosts.txt \ + euandre.org:/opt/secrets/ ## Generate the ".ssh/authorized_keys" file and upload |