as-if-by-ssh
author Paul Crowley <paul@lshift.net>
Thu, 05 Jun 2008 16:53:57 +0100
changeset 32 4059dbe9f26a
permissions -rwxr-xr-x
new break-in system

#!/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/hg-admin-tools/hg-ssh-wrapper root