aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-20 09:37:34 -0300
committerEuAndreh <eu@euandre.org>2023-03-20 09:37:34 -0300
commita3410fbc485e09fd11247f0309c32b0e3026f8bd (patch)
treef41536e7ffebc1b26a46d61807a7f6a9b0a5c79e /Makefile
parentsystem.scm: Use correct rottlog config (diff)
downloadserver-a3410fbc485e09fd11247f0309c32b0e3026f8bd.tar.gz
server-a3410fbc485e09fd11247f0309c32b0e3026f8bd.tar.xz
Makefile: Also upload managed SSH known_hosts file
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 31e021b..08931fb 100644
--- a/Makefile
+++ b/Makefile
@@ -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