changeset 27 | ec31ba248edd |
child 31 | d54720d47ca2 |
26:2c4f499ea12f | 27:ec31ba248edd |
---|---|
1 #!/bin/sh |
|
2 |
|
3 set -e |
|
4 |
|
5 ssh-add -L > first-adminkey |
|
6 |
|
7 if [ \! -s first-adminkey ] ; then |
|
8 echo "No key defined in ssh agent; exiting" |
|
9 exit -1 |
|
10 fi |
|
11 |
|
12 sudo adduser --system --shell /bin/sh --group --disabled-password \ |
|
13 --gecos "Mercurial repositories" hg |
|
14 sudo -u hg -H ./hginit |