Merge pull request #9935 from whitel/fix-for-#9878
Fixes the change in packaging for nfs in f28 (#9878)
This commit is contained in:
commit
584b288b8f
|
@ -5,7 +5,11 @@ module VagrantPlugins
|
|||
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
|
||||
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
|
||||
|
|
|
@ -23,7 +23,6 @@ describe "VagrantPlugins::GuestRedHat::Cap:NFSClient" do
|
|||
|
||||
it "installs rsync" do
|
||||
cap.nfs_client_install(machine)
|
||||
expect(comm.received_commands[0]).to match(/install nfs-utils nfs-utils-lib portmap/)
|
||||
expect(comm.received_commands[0]).to match(/\/bin\/systemctl restart rpcbind nfs/)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue