install
author Paul Crowley <paul@ciphergoth.org>
Thu, 24 Apr 2008 08:27:30 +0100
changeset 28 583ed103e021
parent 27 ec31ba248edd
child 31 d54720d47ca2
permissions -rwxr-xr-x
update README to reflect new scripted installer

#!/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