src/init/break-in/as-if-by-ssh
changeset 34 4b5ca59fe3b7
parent 32 4059dbe9f26a
child 36 b3237aabd0fe
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/init/break-in/as-if-by-ssh	Mon Jun 16 17:17:29 2008 +0100
@@ -0,0 +1,10 @@
+#!/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
+