break-in
changeset 31 d54720d47ca2
child 32 4059dbe9f26a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/break-in	Wed May 28 18:14:15 2008 +0100
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+REPO=~hg/repos/hgadmin
+sudo -u hg -H hg -q -R "$REPO" update null
+sudo -u hg mkdir $REPO/keys
+cp $1 $REPO/keys/root
+cd $REPO
+echo "init user=root" > hg-ssh-access.conf
+sudo -u hg -H /usr/local/lib/hg-admin-tools/refresh-auth ~/.ssh/authorized_keys /etc/hg-admin-tools/hg-ssh-wrapper
+