aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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