src/init/conf/refresh-auth
author Paul Crowley <paul@lshift.net>
Fri, 06 Mar 2009 12:32:25 +0000
changeset 71 1120f78f81da
parent 50 77d97aa18f29
child 73 5d81ec164e5d
permissions -rwxr-xr-x
Move more into hg-ssh

#!/bin/sh
# Copyright 2008-2009 LShift Ltd

# This file should live in /etc/mercurial-server.
# If your repository is laid out differently you may need to modify
# this file.

set -e

if [ `whoami` != 'hg' ] ; then
    echo "Must be run as hg user"
    return -1
else
    /usr/local/lib/mercurial-server/do-refresh-auth \
        ~hg/.ssh/authorized_keys \
        /etc/mercurial-server/hg-ssh-wrapper \
        /etc/mercurial-server/keys \
        ~hg/repos/hgadmin/keys
fi