summaryrefslogtreecommitdiffstats
path: root/services/bin
diff options
context:
space:
mode:
authorroot <root@darth_serious>2013-02-14 13:06:07 +0100
committerroot <root@darth_serious>2013-02-14 13:06:07 +0100
commit62b197ea0604cf9d785bf67eefcf7be00daa92b9 (patch)
tree63632a2d15cff280d3640eed9818a9a098ed35d5 /services/bin
parentc5953301c721096e97ce7e83037f0da85ee4eaa7 (diff)
create routine to update ssh_authorized_keys via ssh
Diffstat (limited to 'services/bin')
-rwxr-xr-xservices/bin/update-services-pubkeys5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/bin/update-services-pubkeys b/services/bin/update-services-pubkeys
new file mode 100755
index 00000000..6a658607
--- /dev/null
+++ b/services/bin/update-services-pubkeys
@@ -0,0 +1,5 @@
+#!/bin/sh
+KREBS_ROOT="${KREBS_ROOT:-/krebs}"
+ssh $1 <<EOF
+sh -eufc "cd $KREBS_ROOT;git pull origin master;make -C $KREBS_ROOT/services ssh_authorized_keys"
+EOF