2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-26 21:20:29 +00:00

Temporarily removed the autoset sslversion to TLSv1 in 2.9 since it's not stable. But customer can enable it manually

This commit is contained in:
daniceexi
2015-02-13 03:31:30 -05:00
parent 355bea4aa4
commit 58015df28e
2 changed files with 8 additions and 7 deletions

View File

@@ -298,7 +298,8 @@ EOF
if [ -r /etc/SuSE-release ]; then
ver=`grep 'VERSION' /etc/SuSE-release | awk -F= '{print $2}' | sed 's/ //g'`
if [ "$ver" = "11" ]; then
echo 'export XCATSSLVER=TLSv1' >> /etc/profile.d/xcat.sh
echo
#echo 'export XCATSSLVER=TLSv1' >> /etc/profile.d/xcat.sh
fi
fi

View File

@@ -1250,7 +1250,7 @@ sub initDB
$chtabcmds .= "$::XCATROOT/sbin/chtab key=cleanupxcatpost site.value=no;";
$chtabcmds .= "$::XCATROOT/sbin/chtab key=dhcplease site.value=43200;";
$chtabcmds .= "$::XCATROOT/sbin/chtab key=auditnosyslog site.value=0;";
$chtabcmds .= "$::XCATROOT/sbin/chtab key=xcatsslversion site.value=TLSv1;";
#$chtabcmds .= "$::XCATROOT/sbin/chtab key=xcatsslversion site.value=TLSv1;";
#$chtabcmds .= "$::XCATROOT/sbin/chtab key=useflowcontrol site.value=yes;"; # need to fix 4031
if ($::osname eq 'AIX')
@@ -1507,11 +1507,11 @@ sub initDB
# add default value to site.xcatsslversion
$cmds = "$::XCATROOT/sbin/chtab key=xcatsslversion site.value=TLSv1;";
$outref = xCAT::Utils->runcmd("$cmds", 0);
if ($::RUNCMD_RC != 0)
{
xCAT::MsgUtils->message('E',"Could not add default value for site.xcatsslversion.");
}
#$outref = xCAT::Utils->runcmd("$cmds", 0);
#if ($::RUNCMD_RC != 0)
#{
# xCAT::MsgUtils->message('E',"Could not add default value for site.xcatsslversion.");
#}