unite install scripts
authorPaul Crowley <paul@lshift.net>
Fri, 20 Feb 2009 11:06:44 +0000
changeset 40 abbb822779da
parent 39 f5055ce263c7
child 41 de0c61b778fa
unite install scripts
install
setup
--- 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
-