From 43f4bcb0088dfcc625cdcf9af503ff3c0b696761 Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Nov 25 2011 16:16:42 +0000 Subject: Fix nfs test on C6 --- diff --git a/tests/p_nfs/0-install_nfs.sh b/tests/p_nfs/0-install_nfs.sh index 58af79b..151a76a 100755 --- a/tests/p_nfs/0-install_nfs.sh +++ b/tests/p_nfs/0-install_nfs.sh @@ -5,6 +5,11 @@ t_InstallPackage nfs-utils # Restart because usualy NFS is enabled by default on CentOS-5 -t_ServiceControl portmap restart t_ServiceControl nfs restart +if (t_GetPkgRel basesystem | grep -q el6) +then + t_ServiceControl rpcbind restart +else + t_ServiceControl portmap restart +fi