Author: benm
Date: 2005-04-27 11:35:23 -0400 (Wed, 27 Apr 2005)
New Revision: 43662

Modified:
   trunk/release/packaging/jail-do
   trunk/release/packaging/shared-code.sh
Log:
don't allocate a tty when we execute a command; that makes it do funky escapes. 
Disable strict host key checking

Modified: trunk/release/packaging/jail-do
===================================================================
--- trunk/release/packaging/jail-do     2005-04-27 14:54:15 UTC (rev 43661)
+++ trunk/release/packaging/jail-do     2005-04-27 15:35:23 UTC (rev 43662)
@@ -9,6 +9,7 @@
 shift
 
 . conf/$TARGET
+. shared-code.sh
 
 #
 # FIXME
@@ -17,8 +18,12 @@
 # pass a command with single quotes. We need to fix this somewhow
 #
 
+SSH_FLAGS="-q"
+
 if [ "x$*" == x ] ; then
        CMD="bash -l"
+       # allocate a tty
+       SSH_FLAGS="$SSH_FLAGS -t"
 else
        CMD="bash -lc '$*'"
 fi
@@ -29,4 +34,4 @@
 #
 ADD_SBIN='PATH=/sbin:/usr/sbin:$PATH'
 
-ssh -qt $target_host "$ADD_SBIN sudo chroot $jaildir $CMD"
+ssh $SSH_FLAGS $target_host "$ADD_SBIN sudo chroot $jaildir $CMD"

Modified: trunk/release/packaging/shared-code.sh
===================================================================
--- trunk/release/packaging/shared-code.sh      2005-04-27 14:54:15 UTC (rev 
43661)
+++ trunk/release/packaging/shared-code.sh      2005-04-27 15:35:23 UTC (rev 
43662)
@@ -1,3 +1,6 @@
+alias ssh='ssh -o "StrictHostKeyChecking no"'
+alias scp='scp -o "StrictHostKeyChecking no"'
+
 function distro_info () {
        DISTRO=$1
        

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to