diff --git a/plugins/guests/debian/cap/nfs_client.rb b/plugins/guests/debian/cap/nfs.rb similarity index 90% rename from plugins/guests/debian/cap/nfs_client.rb rename to plugins/guests/debian/cap/nfs.rb index d8107565d..881469906 100644 --- a/plugins/guests/debian/cap/nfs_client.rb +++ b/plugins/guests/debian/cap/nfs.rb @@ -1,10 +1,11 @@ module VagrantPlugins module GuestDebian module Cap - class NFSClient + class NFS def self.nfs_client_install(machine) comm = machine.communicate comm.sudo <<-EOH.gsub(/^ {12}/, '') + set -e apt-get -yqq update apt-get -yqq install nfs-common portmap EOH diff --git a/plugins/guests/debian/plugin.rb b/plugins/guests/debian/plugin.rb index 84be3c975..705cb6557 100644 --- a/plugins/guests/debian/plugin.rb +++ b/plugins/guests/debian/plugin.rb @@ -22,8 +22,8 @@ module VagrantPlugins end guest_capability(:debian, :nfs_client_install) do - require_relative "cap/nfs_client" - Cap::NFSClient + require_relative "cap/nfs" + Cap::NFS end guest_capability(:debian, :rsync_install) do