summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2019-11-16 15:42:18 -0500
committerrsiddharth <s@ricketyspace.net>2019-11-16 15:42:18 -0500
commit600ace4733b4394265ce0655d4acd787ebf2c7f9 (patch)
tree81f00c9fd894d9ce7a6efedece7791eb68a7d530
parentea2b9c37bb211ab9edb95297c4993eaa3d4a518d (diff)
Makefile: Add prd-sk.
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d2aa86c..409ea8e 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,8 @@ ACME_CONF=etc/acme-client.conf
UWSGI_INI=etc/uwsgi/nfsw.ini
RC_D=etc/rc.d/nfsw
+SSH_PUB=ssh/lyra.pub
+
dunno:
@echo "Give me somepin to make"
@@ -134,6 +136,11 @@ prd-rr:
.PHONY: prd-reload
+prd-sk:
+ rsync ${SSH_PUB} root@${PRD_HOST}:~/.ssh/
+ ssh root@${PRD_HOST} cat ~/.ssh/${SSH_PUB} >> ~/.authorized_keys
+.PHONY: prd-sk
+
clean:
rm -rf build/ dist/ nfsw.egg-info/
find ./ -type d -name '__pycache__' -exec rm -rf {} +