changeset 34 | 4b5ca59fe3b7 |
parent 33 | 18e93dbdaf12 |
child 35 | 0ed592d0f799 |
33:18e93dbdaf12 | 34:4b5ca59fe3b7 |
---|---|
1 #!/bin/sh |
|
2 |
|
3 set -e |
|
4 |
|
5 user=$(whoami) |
|
6 |
|
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 |