src/init/conf/hg-ssh-wrapper
changeset 72 582808b47653
parent 71 1120f78f81da
equal deleted inserted replaced
71:1120f78f81da 72:582808b47653
     2 # Copyright 2008-2009 LShift Ltd
     2 # Copyright 2008-2009 LShift Ltd
     3 
     3 
     4 # This file should live in /etc/mercurial-server.  It expects
     4 # This file should live in /etc/mercurial-server.  It expects
     5 # to be specified as the target of the "command" section in the prefix
     5 # to be specified as the target of the "command" section in the prefix
     6 # of a key in the authorized_keys file, and be passed a name associated
     6 # of a key in the authorized_keys file, and be passed a name associated
     7 # with an ssh key as its only argument.  It does some setting up before
     7 # with an ssh key as its only argument.
     8 # calling hg-ssh, which does the real work of deciding whether to allow
       
     9 # the users action based on the type of the action, the key name, and
       
    10 # the contents of the specified rules file.
       
    11 
       
    12 # If your repository is laid out differently you may need to modify
       
    13 # this file.
       
    14 
     8 
    15 set -e
     9 set -e
    16 
       
    17 cd repos
       
    18 exec /usr/local/lib/mercurial-server/hg-ssh $1
    10 exec /usr/local/lib/mercurial-server/hg-ssh $1