From e570ed6e49ffcbb1119d593829733851c33f8e90 Mon Sep 17 00:00:00 2001 From: ligc Date: Mon, 21 Oct 2013 11:02:37 +0800 Subject: [PATCH] remoteshell fix for SLES 12 support, sshd is not enabled by default on SLES 12, enable sshd in remoteshell postscript --- perl-xCAT/xCAT/Version.pm | 4 ++-- xCAT/postscripts/remoteshell | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/Version.pm b/perl-xCAT/xCAT/Version.pm index 99fe9c4f2..1099942ad 100644 --- a/perl-xCAT/xCAT/Version.pm +++ b/perl-xCAT/xCAT/Version.pm @@ -42,11 +42,11 @@ sub Version my $version = shift; if ($version eq 'short') { - $version = '' #XCATVERSIONSUBHERE ; + $version = '' . '2.9' ; } else { - $version = 'Version ' #XCATVERSIONSUBHERE #XCATSVNBUILDSUBHERE ; + $version = 'Version ' . '2.9' . ' (git commit aabb, built Thu Oct 17 14:52:04 CST 2013)' ; } return $version; diff --git a/xCAT/postscripts/remoteshell b/xCAT/postscripts/remoteshell index 1580c519b..0157d3584 100755 --- a/xCAT/postscripts/remoteshell +++ b/xCAT/postscripts/remoteshell @@ -460,6 +460,9 @@ then fi else #service sshd restart + # sshd is not enabled on SLES 12 by default + # does not hurt anything to re-enable if it is enabled already + enableservice sshd restartservice sshd fi