src/init/conf/refresh-auth
author Paul Crowley <paul@lshift.net>
Fri, 20 Feb 2009 12:44:16 +0000
changeset 49 a886ed5fec05
parent 39 f5055ce263c7
child 50 77d97aa18f29
permissions -rwxr-xr-x
New README

#!/bin/sh

# 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