src/init/conf/refresh-auth
changeset 73 5d81ec164e5d
parent 50 77d97aa18f29
equal deleted inserted replaced
72:582808b47653 73:5d81ec164e5d
     1 #!/bin/sh
     1 #!/bin/sh
     2 # Copyright 2008-2009 LShift Ltd
     2 # Copyright 2008-2009 LShift Ltd
     3 
     3 
     4 # This file should live in /etc/mercurial-server.
     4 # This file should live in /etc/mercurial-server.
     5 # If your repository is laid out differently you may need to modify
       
     6 # this file.
       
     7 
     5 
     8 set -e
     6 exec /usr/local/lib/mercurial-server/do-refresh-auth
     9 
     7 
    10 if [ `whoami` != 'hg' ] ; then
       
    11     echo "Must be run as hg user"
       
    12     return -1
       
    13 else
       
    14     /usr/local/lib/mercurial-server/do-refresh-auth \
       
    15         ~hg/.ssh/authorized_keys \
       
    16         /etc/mercurial-server/hg-ssh-wrapper \
       
    17         /etc/mercurial-server/keys \
       
    18         ~hg/repos/hgadmin/keys
       
    19 fi