hginit
changeset 27 ec31ba248edd
child 30 98dbde5b13a1
equal deleted inserted replaced
26:2c4f499ea12f 27:ec31ba248edd
       
     1 #!/bin/sh
       
     2 
       
     3 set -e
       
     4 
       
     5 initdir=$(pwd)
       
     6 
       
     7 cd
       
     8 mkdir -p admin repos/hgadmin/keys/admin .ssh
       
     9 cp -r "$initdir" admin/hg-admin-tools
       
    10 cp admin/hg-admin-tools/hg-ssh-wrapper admin/hg-admin-tools/remote-hgrc ~
       
    11 mv admin/hg-admin-tools/first-adminkey repos/hgadmin/keys/admin/first
       
    12 cd repos/hgadmin
       
    13 hg init .
       
    14 echo "init user=admin/*" > hg-ssh-access.conf
       
    15 hg add
       
    16 hg commit -m "initial commit"
       
    17 cp ../../admin/hg-admin-tools/hgadmin-hgrc .hg/hgrc
       
    18 ../../admin/hg-admin-tools/refresh-auth ./hg-ssh-wrapper