author | Paul Crowley <paul@lshift.net> |
Mon, 16 Jun 2008 17:12:20 +0100 | |
changeset 33 | 18e93dbdaf12 |
parent 32 | 4059dbe9f26a |
permissions | -rwxr-xr-x |
31
d54720d47ca2
start to move towards things living where they should and new
Paul Crowley <paul@lshift.net>
parents:
diff
changeset
|
1 |
#!/bin/sh |
d54720d47ca2
start to move towards things living where they should and new
Paul Crowley <paul@lshift.net>
parents:
diff
changeset
|
2 |
|
d54720d47ca2
start to move towards things living where they should and new
Paul Crowley <paul@lshift.net>
parents:
diff
changeset
|
3 |
set -e |
d54720d47ca2
start to move towards things living where they should and new
Paul Crowley <paul@lshift.net>
parents:
diff
changeset
|
4 |
|
32 | 5 |
user=$(whoami) |
31
d54720d47ca2
start to move towards things living where they should and new
Paul Crowley <paul@lshift.net>
parents:
diff
changeset
|
6 |
|
32 | 7 |
/usr/local/lib/hg-admin-tools/create-breakin-repository |
8 |
cd hgadmin |
|
9 |
mkdir -p keys |
|
10 |
ssh-add -L > keys/$user |
|
11 |
echo "init user=$user" > hg-ssh-access.conf |
|
12 |
hg add keys/$user hg-ssh-access.conf |
|
13 |
hg commit -m "Give all access only to user $user" |
|
14 |
hg push |