You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by fa...@apache.org on 2012/02/22 22:06:51 UTC

svn commit: r1292504 - /incubator/vcl/trunk/managementnode/bin/gen-node-key.sh

Author: fapeeler
Date: Wed Feb 22 21:06:51 2012
New Revision: 1292504

URL: http://svn.apache.org/viewvc?rev=1292504&view=rev
Log:
VCL-407 

removed xCAT references and tools, latest versions of xCAT do not use the makesshgkh utility


Modified:
    incubator/vcl/trunk/managementnode/bin/gen-node-key.sh

Modified: incubator/vcl/trunk/managementnode/bin/gen-node-key.sh
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/bin/gen-node-key.sh?rev=1292504&r1=1292503&r2=1292504&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/bin/gen-node-key.sh (original)
+++ incubator/vcl/trunk/managementnode/bin/gen-node-key.sh Wed Feb 22 21:06:51 2012
@@ -106,26 +106,9 @@ else
 fi
 print_hr
 
-# Remove existing entries for the node from xCAT gkh file
-if [ `grep -ic "^$NODE " /opt/xcat/etc/gkh` -ne 0 ];
-then
-  echo Removing $C entries for $NODE from '/opt/xcat/etc/gkh'
-  sed -i -r -e "s/^$NODE .*//" /opt/xcat/etc/gkh
-else
-  echo Entry does not exist for $NODE in '/opt/xcat/etc/gkh'
-fi
-print_hr
-
 # Add the node's key to the known hosts file
-which makesshgkh
-if [ $? == 0 ];
-then
-	echo Running xCAT makesshgkh utility for $NODE
-	makesshgkh $NODE
-else
-	echo Scanning host key for $NODE and adding it to '/root/.ssh/known_hosts'
-	ssh-keyscan -t rsa $NODE >> /root/.ssh/known_hosts
-fi
+echo Scanning host key for $NODE and adding it to '/root/.ssh/known_hosts'
+ssh-keyscan -t rsa $NODE >> /root/.ssh/known_hosts
 print_hr
 
 echo Copying public key to authorized_keys on $NODE
@@ -148,4 +131,4 @@ echo
 echo "Try to run the following command, it should NOT prompt for a password:"
 echo "ssh $SSH_OPTIONS -i $KEY_PATH $NODE"
 
-exit 0
\ No newline at end of file
+exit 0