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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
32
4059dbe9f26a new break-in system
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     1
#!/bin/sh
4059dbe9f26a new break-in system
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     2
# Used only for break-ins
4059dbe9f26a new break-in system
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     3
4059dbe9f26a new break-in system
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     4
set -e
4059dbe9f26a new break-in system
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     5
SSH_ORIGINAL_COMMAND=$1
4059dbe9f26a new break-in system
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     6
echo "SSH_ORIGINAL_COMMAND=$SSH_ORIGINAL_COMMAND" >&2
4059dbe9f26a new break-in system
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     7
export SSH_ORIGINAL_COMMAND
4059dbe9f26a new break-in system
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     8
cd
36
b3237aabd0fe Change the name to mercurial-server
Paul Crowley <paul@lshift.net>
parents: 34
diff changeset
     9
exec /etc/mercurial-server/hg-ssh-wrapper root
32
4059dbe9f26a new break-in system
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    10