From 8373b78f8d231a173224d89e93577f664dd3c02b Mon Sep 17 00:00:00 2001 From: ligc Date: Tue, 23 Feb 2010 05:49:30 +0000 Subject: [PATCH] fix for bug 2953258: comment out ssl settings in .consolerc if ssl is not enabled git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5257 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/rcons | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT-client/bin/rcons b/xCAT-client/bin/rcons index bff275ae1..f0b430a68 100755 --- a/xCAT-client/bin/rcons +++ b/xCAT-client/bin/rcons @@ -43,6 +43,11 @@ if ! console -h 2>&1 | grep "encryption not compiled" > /dev/null; then echo " sslcredentials $HOME/.xcat/client-cred.pem;" >> $HOME/.consolerc echo '}' >> $HOME/.consolerc fi +else + # ssl is not enabled, comment out the ssl settings in .consolerc + if [ -f $HOME/.consolerc ]; then + sed -i 's/\Wssl/#ssl/1' $HOME/.consolerc + fi fi exec console $FORCE -M $CONSERVER $1