hginit
changeset 31 d54720d47ca2
parent 30 98dbde5b13a1
child 32 4059dbe9f26a
--- a/hginit	Fri May 02 18:03:42 2008 +0100
+++ b/hginit	Wed May 28 18:14:15 2008 +0100
@@ -2,17 +2,9 @@
 
 set -e
 
-initdir=$(pwd)
-
 cd
-mkdir -p admin repos/hgadmin/keys/admin .ssh
-cp -r "$initdir" admin/hg-admin-tools
-cp admin/hg-admin-tools/hg-ssh-wrapper admin/hg-admin-tools/remote-hgrc ~
-mv admin/hg-admin-tools/first-adminkey repos/hgadmin/keys/admin/first
+mkdir -p repos/hgadmin .ssh
 cd repos/hgadmin
 hg init .
-echo "init user=admin/*" > hg-ssh-access.conf
-hg add
-hg commit -m "initial commit"
-cp ../../admin/hg-admin-tools/hgadmin-hgrc .hg/hgrc
-../../admin/hg-admin-tools/refresh-auth ~/.ssh/authorized_keys ./hg-ssh-wrapper
+cp /usr/local/lib/hg-admin-tools/hgadmin-hgrc .hg/hgrc
+