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.
15 lines
487 B
Ruby
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
|