--- a/install Sun Mar 08 15:19:53 2009 +0000
+++ b/install Sun Mar 08 15:44:47 2009 +0000
@@ -77,6 +77,7 @@
subprocess.check_call(
"adduser --system --shell /bin/sh --group --disabled-password".split() +
["--gecos", "Mercurial repositories", "hg"])
- subprocess.check_call([options.prefix + '/share/mercurial-server/init/hginit'],
+ subprocess.check_call([options.prefix + '/share/mercurial-server/init/hginit',
+ options.prefix + '/share/mercurial-server'],
preexec_fn = becomeFunc('hg'))
--- a/src/init/hginit Sun Mar 08 15:19:53 2009 +0000
+++ b/src/init/hginit Sun Mar 08 15:44:47 2009 +0000
@@ -6,4 +6,4 @@
mkdir -p repos/hgadmin .ssh
cd repos/hgadmin
hg init .
-cp /usr/local/share/mercurial-server/init/hgadmin-hgrc .hg/hgrc
+cp $1/init/hgadmin-hgrc .hg/hgrc