src/init/break-in/as-if-by-ssh
author Paul Crowley <paul@lshift.net>
Mon, 16 Jun 2008 17:24:53 +0100
changeset 36 b3237aabd0fe
parent 34 4b5ca59fe3b7
permissions -rwxr-xr-x
Change the name to mercurial-server

#!/bin/sh
# Used only for break-ins

set -e
SSH_ORIGINAL_COMMAND=$1
echo "SSH_ORIGINAL_COMMAND=$SSH_ORIGINAL_COMMAND" >&2
export SSH_ORIGINAL_COMMAND
cd
exec /etc/mercurial-server/hg-ssh-wrapper root