fix defect 3483

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8-pcm@15935 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav
2013-04-10 15:44:52 +00:00
parent 17c25d67dc
commit 8815ed2f4c
+12 -3
View File
@@ -1801,9 +1801,14 @@ sub setupLinuxexports
if ($changed_exports)
{
# restart nfs
my $cmd = "/sbin/service nfs restart";
my $os = xCAT::Utils->osver();
my $cmd;
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)
{
@@ -1814,7 +1819,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)
{