From c81d0dbf6f55b53125e400cd83ece53adf14f14e Mon Sep 17 00:00:00 2001 From: mxi1 Date: Wed, 22 Jul 2009 05:58:07 +0000 Subject: [PATCH] -defect 2810396 is fixed for SuSE. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3852 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/rcons | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/xCAT-client/bin/rcons b/xCAT-client/bin/rcons index 2d19ecdd1..2dcfc3acf 100755 --- a/xCAT-client/bin/rcons +++ b/xCAT-client/bin/rcons @@ -29,13 +29,19 @@ 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 " port 782;" >> $HOME/.consolerc - echo " sslenabled yes;" >> $HOME/.consolerc - echo " sslauthority $HOME/.xcat/ca.pem;" >> $HOME/.consolerc - echo " sslcredentials $HOME/.xcat/client-cred.pem;" >> $HOME/.consolerc - echo '}' >> $HOME/.consolerc + +#NOTE: on SuSE(at least SLES11), SSL is not complied in the application "console"; +#so SuSE doesn't need the configuration in the file .consolerc + +if [ ! -f /etc/SuSE-release ]; then + if [ ! -f $HOME/.consolerc ]; then + echo 'config * {' > $HOME/.consolerc + echo " port 782;" >> $HOME/.consolerc + echo " sslenabled yes;" >> $HOME/.consolerc + echo " sslauthority $HOME/.xcat/ca.pem;" >> $HOME/.consolerc + echo " sslcredentials $HOME/.xcat/client-cred.pem;" >> $HOME/.consolerc + echo '}' >> $HOME/.consolerc + fi fi exec console $FORCE -M $CONSERVER $1