break-in
author Paul Crowley <paul@lshift.net>
Mon, 16 Jun 2008 17:12:20 +0100
changeset 33 18e93dbdaf12
parent 32 4059dbe9f26a
permissions -rwxr-xr-x
moved stuff into subdirectories

#!/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