Commit 65321806 authored by Volker Hilsheimer's avatar Volker Hilsheimer
Browse files

If folder sharing is disabled, upload util scripts

parent 847afa87
......@@ -259,6 +259,21 @@ Vagrant.configure("2") do |config|
unless shares.nil?
if shares.include?("disabled")
box.vm.synced_folder ".", "/opt/minicoin", disabled: true
if box.vm.guest == :windows
box.vm.provision "minicoin guest scripts:upload",
type: :file,
source: "./util",
destination: "C:\\opt\\minicoin\\"
else
box.vm.provision "minicoin guest scripts:script",
type: :shell,
inline: "sudo mkdir -p /opt/minicoin/util; chown -R vagrant /opt/minicoin",
upload_path: "/tmp/vagrant-shell_minicoin_guest_scripts"
box.vm.provision "minicoin guest scripts:upload",
type: :file,
source: "./util",
destination: "/opt/minicoin/"
end
else
share_folders(box, machine, shares)
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment