install
changeset 40 abbb822779da
parent 39 f5055ce263c7
child 44 cf851f3ddf16
--- a/install	Thu Feb 19 17:51:06 2009 +0000
+++ b/install	Fri Feb 20 11:06:44 2009 +0000
@@ -23,3 +23,8 @@
     src/init/conf/access.conf
 install -o root -g root -d /etc/mercurial-server/keys/root
 
+if [ x$(getent passwd hg) == x ] ; then
+    adduser --system --shell /bin/sh --group --disabled-password \
+        --gecos "Mercurial repositories" hg
+    su -c /usr/local/lib/mercurial-server/init/hginit hg
+fi