Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alexandru Croitor
minicoin
Commits
65321806
Commit
65321806
authored
Mar 02, 2022
by
Volker Hilsheimer
Browse files
If folder sharing is disabled, upload util scripts
parent
847afa87
Changes
1
Hide whitespace changes
Inline
Side-by-side
minicoin/Vagrantfile
View file @
65321806
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment