Tim Schumacher a7f09f010c alpine: Convert nfs_client capability to seperate commands
The workaround for the broken repository should be safe to be removed,
since the last affected Alpine version (<=3.3) EOL'd in November of 2017.

The remaining important commands can be split out into seperate calls
of sudo(), which removes the need for manual exit-code checking
(since it aborts by itself when a command fails) and makes the code
easier to handle in general.
2019-07-26 08:31:12 +02:00

15 lines
487 B
Ruby

module VagrantPlugins
module GuestAlpine
module Cap
class NFSClient
def self.nfs_client_install(machine)
machine.communicate.sudo('apk update')
machine.communicate.sudo('apk add --upgrade nfs-utils')
machine.communicate.sudo('rc-update add rpc.statd')
machine.communicate.sudo('rc-service rpc.statd start')
end
end
end
end
end