install
changeset 27 ec31ba248edd
child 31 d54720d47ca2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/install	Wed Apr 23 09:23:32 2008 +0100
@@ -0,0 +1,14 @@
+#!/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