hg-ssh-wrapper
changeset 31 d54720d47ca2
parent 18 538d6b198f4a
--- a/hg-ssh-wrapper	Fri May 02 18:03:42 2008 +0100
+++ b/hg-ssh-wrapper	Wed May 28 18:14:15 2008 +0100
@@ -1,7 +1,6 @@
 #!/bin/sh
 
-# This file needs to be saved as ~/hg-ssh-wrapper for the user whose
-# ~/.ssh/authorized_keys file is rewritten by refresh-auth.  It expects
+# This file should live in /etc/hg-admin-tools.  It expects
 # to be specified as the target of the "command" section in the prefix
 # of a key in the authorized_keys file, and be passed a name associated
 # with an ssh key as its only argument.  It does some setting up before
@@ -17,7 +16,7 @@
 # Use a different hgrc for remote pulls - this way you can set
 # up access.py for everything at once without affecting local operations
 
-HGRCPATH=$(pwd)/remote-hgrc
+HGRCPATH=/etc/hg-admin-tools/remote-hgrc
 export HGRCPATH
 
 # Set up this environment variable - useful for hg hooks to check.
@@ -27,4 +26,5 @@
 cd repos
 HG_ACCESS_RULES_FILE=$(pwd)/hgadmin/hg-ssh-access.conf
 export HG_ACCESS_RULES_FILE
-exec ../admin/hg-admin-tools/hg-ssh 
+exec /usr/local/lib/hg-admin-tools/hg-ssh
+