From 6e5fcf3edd92d8149993ba64ef8415034adfe482 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 13 Aug 2013 11:49:32 -0400 Subject: [PATCH] bad code in remoteshell for flowcontrol --- xCAT/postscripts/remoteshell | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/xCAT/postscripts/remoteshell b/xCAT/postscripts/remoteshell index b36c309f0..151208a00 100755 --- a/xCAT/postscripts/remoteshell +++ b/xCAT/postscripts/remoteshell @@ -48,7 +48,7 @@ then echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config fi - +xcatpost="xcatpost" if [ -d /xcatpost/_ssh ] then logger -p local4.info -t xcat "Install: setup root .ssh" @@ -74,7 +74,7 @@ CREDPID=$! #first contact daemon xcatflowrequest 3001 -logger -t xCAT -p local4.info "xcatdsklspost: xcatflowrequest $master 3001" +logger -t xCAT -p local4.info "xcatdsklspost: /$xcatpost/xcatflowrequest $master 3001" /$xcatpost/xcatflowrequest $master 3001 getcredentials.awk ssh_dsa_hostkey | grep -E -v '|' | sed -e 's/<//' -e 's/&/&/' -e 's/"/"/' -e "s/'/'/" > /tmp/ssh_dsa_hostkey @@ -87,7 +87,7 @@ if [ $? -ne 0 ]; then MYCONT=`cat /etc/ssh/ssh_host_dsa_key` while [ -z "$MYCONT" ]; do #first contact daemon xcatflowrequest 3001 - logger -t xCAT -p local4.info "xcatdsklspost: xcatflowrequest $master 3001" + logger -t xCAT -p local4.info "xcatdsklspost: /$xcatpost/xcatflowrequest $master 3001" /$xcatpost/xcatflowrequest $master 3001 getcredentials.awk ssh_dsa_hostkey | grep -v '<'|sed -e 's/<//' -e 's/&/&/' -e 's/"/"/' -e "s/'/'/" > /etc/ssh/ssh_host_dsa_key MYCONT=`cat /etc/ssh/ssh_host_dsa_key` @@ -108,7 +108,7 @@ fi rm /tmp/ssh_dsa_hostkey # first contact daemon xcatflowrequest 3001 - logger -t xCAT -p local4.info "xcatdsklspost: xcatflowrequest $master 3001" + logger -t xCAT -p local4.info "xcatdsklspost: /$xcatpost/xcatflowrequest $master 3001" /$xcatpost/xcatflowrequest $master 3001 getcredentials.awk ssh_rsa_hostkey | grep -E -v '|' | sed -e 's/<//' -e 's/&/&/' -e 's/"/"/' -e "s/'/'/" > /tmp/ssh_rsa_hostkey @@ -121,7 +121,7 @@ if [ $? -ne 0 ]; then MYCONT=`cat /etc/ssh/ssh_host_rsa_key` while [ -z "$MYCONT" ]; do # first contact daemon xcatflowrequest 3001 - logger -t xCAT -p local4.info "xcatdsklspost: xcatflowrequest $master 3001" + logger -t xCAT -p local4.info "xcatdsklspost: /$xcatpost/xcatflowrequest $master 3001" /$xcatpost/xcatflowrequest $master 3001 getcredentials.awk ssh_rsa_hostkey | grep -v '<'|sed -e 's/<//' -e 's/&/&/' -e 's/"/"/' -e "s/'/'/" > /etc/ssh/ssh_host_rsa_key @@ -155,7 +155,7 @@ sleep 1 if [ $ENABLESSHBETWEENNODES = "YES" ]; then #first contact daemon xcatflowrequest 3001 - logger -t xCAT -p local4.info "xcatdsklspost: xcatflowrequest $master 3001" + logger -t xCAT -p local4.info "xcatdsklspost: /$xcatpost/xcatflowrequest $master 3001" /$xcatpost/xcatflowrequest $master 3001 getcredentials.awk ssh_root_key | grep -E -v '|'|sed -e 's/<//' -e 's/&/&/' -e 's/"/"/' -e "s/'/'/" > /tmp/ssh_root_key @@ -168,7 +168,7 @@ then MYCONT=`cat /root/.ssh/id_rsa` while [ -z "$MYCONT" ]; do # first contact daemon xcatflowrequest 3001 - logger -t xCAT -p local4.info "xcatdsklspost: xcatflowrequest $master 3001" + logger -t xCAT -p local4.info "xcatdsklspost: /$xcatpost/xcatflowrequest $master 3001" /$xcatpost/xcatflowrequest $master 3001 getcredentials.awk ssh_root_key | grep -v '<'|sed -e 's/<//' -e 's/&/&/' -e 's/"/"/' -e "s/'/'/" > /root/.ssh/id_rsa MYCONT=`cat /root/.ssh/id_rsa`