install
author Paul Crowley <paul@lshift.net>
Wed, 28 May 2008 18:14:15 +0100
changeset 31 d54720d47ca2
parent 27 ec31ba248edd
child 32 4059dbe9f26a
permissions -rwxr-xr-x
start to move towards things living where they should and new break-in system. Big change.

#!/bin/sh

set -e

install -o root -g root -d /usr/local/lib/hg-admin-tools
install -o root -g root -t /usr/local/lib/hg-admin-tools \
    access.py hg-ssh refresh-auth ruleset.py hgadmin-hgrc break-in
install -o root -g root -d /etc/hg-admin-tools
install -o root -g root -t /etc/hg-admin-tools hg-ssh-wrapper remote-hgrc

sudo adduser --system --shell /bin/sh --group --disabled-password \
   --gecos "Mercurial repositories" hg
sudo -u hg -H ./hginit