break-in
author Paul Crowley <paul@lshift.net>
Thu, 05 Jun 2008 16:53:57 +0100
changeset 32 4059dbe9f26a
parent 31 d54720d47ca2
permissions -rwxr-xr-x
new break-in system

#!/bin/sh

set -e

user=$(whoami)

/usr/local/lib/hg-admin-tools/create-breakin-repository
cd hgadmin
mkdir -p keys
ssh-add -L > keys/$user
echo "init user=$user" > hg-ssh-access.conf
hg add keys/$user hg-ssh-access.conf
hg commit -m "Give all access only to user $user"
hg push