guest/redhat: fix nfs client installation

CentOS 8+ and Fedora 30+ no longer have the alias "nfs" for "nfs-server"
systemd service.

This shouldn't break backward compatibility, since "nfs-server" service
is available on all supported redhat systems that have systemctl binary.

Fixes #10838
This commit is contained in:
Tomas Krizek 2019-10-18 13:56:51 +02:00 committed by Brian Cain
parent 237af1b6aa
commit 3519f82b24
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ module VagrantPlugins
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