fix defect 3483

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15936 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2013-04-10 15:53:33 +00:00
parent a8094a6ec4
commit 76ccff5b66

View File

@ -1843,7 +1843,13 @@ sub setupLinuxexports
{
# restart nfs
my $cmd = "/sbin/service nfs restart";
my $cmd;
my $os = xCAT::Utils->osver();
if ($os =~ /sles/) {
$cmd = "/sbin/service nfsserver restart";
} else {
$cmd = "/sbin/service nfs restart";
}
my $outref = xCAT::Utils->runcmd("$cmd", 0);
if ($::RUNCMD_RC != 0)
{
@ -1854,7 +1860,11 @@ sub setupLinuxexports
xCAT::MsgUtils->message('I', "NFS has been restarted.");
}
$cmd = "/sbin/chkconfig nfs on";
if ($os =~ /sles/) {
$cmd = "/sbin/chkconfig nfsserver on";
} else {
$cmd = "/sbin/chkconfig nfs on";
}
$outref = xCAT::Utils->runcmd("$cmd", 0);
if ($::RUNCMD_RC != 0)
{