--- 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
--- a/setup Thu Feb 19 17:51:06 2009 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-set -e
-
-./install
-
-adduser --system --shell /bin/sh --group --disabled-password \
- --gecos "Mercurial repositories" hg
-su -c /usr/local/lib/mercurial-server/init/hginit hg
-