commit
9a93930fa9
|
@ -8,10 +8,7 @@ module VagrantPlugins
|
||||||
version = result.split('.')[0].to_i if type == :stdout
|
version = result.split('.')[0].to_i if type == :stdout
|
||||||
end
|
end
|
||||||
|
|
||||||
pkg_cmd = "pkg_add -r"
|
pkg_cmd = "pkg install -y"
|
||||||
if version && version >= 10
|
|
||||||
pkg_cmd = "pkg install -y"
|
|
||||||
end
|
|
||||||
|
|
||||||
machine.communicate.sudo("#{pkg_cmd} rsync")
|
machine.communicate.sudo("#{pkg_cmd} rsync")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue