equal
deleted
inserted
replaced
1 #!/bin/sh |
1 #!/bin/sh |
2 |
2 |
3 set -e |
3 set -e |
4 |
4 |
5 ssh-add -L > first-adminkey |
5 install -o root -g root -d /usr/local/lib/hg-admin-tools |
6 |
6 install -o root -g root -t /usr/local/lib/hg-admin-tools \ |
7 if [ \! -s first-adminkey ] ; then |
7 access.py hg-ssh refresh-auth ruleset.py hgadmin-hgrc break-in |
8 echo "No key defined in ssh agent; exiting" |
8 install -o root -g root -d /etc/hg-admin-tools |
9 exit -1 |
9 install -o root -g root -t /etc/hg-admin-tools hg-ssh-wrapper remote-hgrc |
10 fi |
|
11 |
10 |
12 sudo adduser --system --shell /bin/sh --group --disabled-password \ |
11 sudo adduser --system --shell /bin/sh --group --disabled-password \ |
13 --gecos "Mercurial repositories" hg |
12 --gecos "Mercurial repositories" hg |
14 sudo -u hg -H ./hginit |
13 sudo -u hg -H ./hginit |
|
14 |