README
changeset 15 f3654416d178
parent 14 e7d5254cd0ca
child 18 538d6b198f4a
equal deleted inserted replaced
14:e7d5254cd0ca 15:f3654416d178
    74    ssh-add -L >> /tmp/my-ssh-public-key
    74    ssh-add -L >> /tmp/my-ssh-public-key
    75    sudo adduser --system --shell /bin/sh --group --disabled-password \
    75    sudo adduser --system --shell /bin/sh --group --disabled-password \
    76      --gecos "Mercurial repositories" hg
    76      --gecos "Mercurial repositories" hg
    77    sudo -u hg -H -s
    77    sudo -u hg -H -s
    78    cd
    78    cd
    79    mkdir -p admin repos/hgadmin/keys/admin
    79    mkdir -p admin repos/hgadmin/keys/admin .ssh
    80    cd admin
    80    cd admin
    81    hg clone http://hg.opensource.lshift.net/hg-admin-tools
    81    hg clone http://hg.opensource.lshift.net/hg-admin-tools
    82    cp hg-admin-tools/hg-ssh-wrapper ~
    82    cp hg-admin-tools/hg-ssh-wrapper ~
    83    cd ../repos/hgadmin
    83    cd ../repos/hgadmin
    84    hg init .
    84    hg init .
    85    echo "init admin/* *" > hg-ssh-access.conf
    85    echo "init admin/* *" > hg-ssh-access.conf
    86    cp /tmp/my-ssh-public-key keys/admin/myname
    86    cp /tmp/my-ssh-public-key keys/admin/myname
    87    hg add
    87    hg add
    88    hg commit
    88    hg commit -m "initial commit"
    89    cp ~/admin/hg-admin-tools/hgadmin-hgrc .hg/hgrc
    89    cp ~/admin/hg-admin-tools/hgadmin-hgrc .hg/hgrc
    90    ../../admin/hg-admin-tools/refresh-auth
    90    ../../admin/hg-admin-tools/refresh-auth ./hg-ssh-wrapper
    91    exit
    91    exit
    92    exit
    92    exit
    93 
    93 
    94 You are now the sole user able to change and create repositories on
    94 You are now the sole user able to change and create repositories on
    95 this repository host.  To administer these controls (and test your
    95 this repository host.  To administer these controls (and test your