install
author Paul Crowley <paul@ciphergoth.org>
Wed, 23 Apr 2008 09:23:32 +0100
changeset 27 ec31ba248edd
child 31 d54720d47ca2
permissions -rwxr-xr-x
Installer to set things up automatically

#!/bin/sh

set -e

ssh-add -L > first-adminkey

if [ \! -s first-adminkey ] ; then
    echo "No key defined in ssh agent; exiting"
    exit -1
fi

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