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:
parent
237af1b6aa
commit
3519f82b24
|
@ -15,7 +15,7 @@ module VagrantPlugins
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test $(ps -o comm= 1) == 'systemd'; then
|
if test $(ps -o comm= 1) == 'systemd'; then
|
||||||
/bin/systemctl restart rpcbind nfs
|
/bin/systemctl restart rpcbind nfs-server
|
||||||
else
|
else
|
||||||
/etc/init.d/rpcbind restart
|
/etc/init.d/rpcbind restart
|
||||||
/etc/init.d/nfs restart
|
/etc/init.d/nfs restart
|
||||||
|
|
Loading…
Reference in New Issue