break-in
changeset 31 d54720d47ca2
child 32 4059dbe9f26a
equal deleted inserted replaced
30:98dbde5b13a1 31:d54720d47ca2
       
     1 #!/bin/sh
       
     2 
       
     3 set -e
       
     4 
       
     5 REPO=~hg/repos/hgadmin
       
     6 sudo -u hg -H hg -q -R "$REPO" update null
       
     7 sudo -u hg mkdir $REPO/keys
       
     8 cp $1 $REPO/keys/root
       
     9 cd $REPO
       
    10 echo "init user=root" > hg-ssh-access.conf
       
    11 sudo -u hg -H /usr/local/lib/hg-admin-tools/refresh-auth ~/.ssh/authorized_keys /etc/hg-admin-tools/hg-ssh-wrapper
       
    12