plugins/guests/redhat/cap/nfs_client.rb in vagrant-unbundled-2.2.6.2 vs plugins/guests/redhat/cap/nfs_client.rb in vagrant-unbundled-2.2.7.0
- old
+ new
@@ -3,20 +3,20 @@
module Cap
class NFSClient
def self.nfs_client_install(machine)
machine.communicate.sudo <<-EOH.gsub(/^ {12}/, '')
if command -v dnf; then
- if `dnf info -q libnfs-utils > /dev/null 2>&1` ; then
+ if `dnf info -q libnfs-utils > /dev/null 2>&1` ; then
dnf -y install nfs-utils libnfs-utils portmap
else
dnf -y install nfs-utils nfs-utils-lib portmap
fi
else
yum -y install nfs-utils nfs-utils-lib portmap
fi
if test $(ps -o comm= 1) == 'systemd'; then
- /bin/systemctl restart rpcbind nfs
+ /bin/systemctl restart rpcbind nfs-server
else
/etc/init.d/rpcbind restart
/etc/init.d/nfs restart
fi
EOH