summaryrefslogtreecommitdiffstats
path: root/services/bin
diff options
context:
space:
mode:
authorroot <root@darth_serious>2013-02-14 13:11:36 +0100
committerroot <root@darth_serious>2013-02-14 13:11:36 +0100
commit6722589766e34218dd8d4366edbab4e23f252391 (patch)
tree2ba67bd239371326b62bb6b39cec80e3e62fe7be /services/bin
parent62b197ea0604cf9d785bf67eefcf7be00daa92b9 (diff)
fix update-services-pubkeys
Diffstat (limited to 'services/bin')
-rwxr-xr-xservices/bin/update-services-pubkeys4
1 files changed, 1 insertions, 3 deletions
diff --git a/services/bin/update-services-pubkeys b/services/bin/update-services-pubkeys
index 6a658607..9936c402 100755
--- a/services/bin/update-services-pubkeys
+++ b/services/bin/update-services-pubkeys
@@ -1,5 +1,3 @@
#!/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
+ssh $1 -t "cd ${KREBS_ROOT};git pull origin master;sudo -u services make -C $KREBS_ROOT/services ssh_authorized_keys"