From 215366db2b55787aa982e426b3fdc779c49dfd59 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 10 Jan 2008 02:02:57 +0000 Subject: [PATCH] Fix format difference between XCATHOST and CONSEVER environment variables in wcons git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@237 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client-2.0/bin/rcons | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-client-2.0/bin/rcons b/xCAT-client-2.0/bin/rcons index 4ed424df7..3cc983d5b 100755 --- a/xCAT-client-2.0/bin/rcons +++ b/xCAT-client-2.0/bin/rcons @@ -6,6 +6,9 @@ fi if [ -z $CONSERVER ]; then CONSERVER=localhost fi +#NOTE: IPv6 is not good with the below if going by IP, needs more sophisticated +#parsing +CONSERVER=`echo $CONSERVER|cut -d: -f 1` if [ ! -f $HOME/.consolerc ]; then echo 'config * {' > $HOME/.consolerc echo " sslauthority $HOME/.xcat/ca.pem;" >> $HOME/.consolerc