Skip to content

Commit 2eeb2f9

Browse files
committed
Fixes geerlingguy#48: Create the share folder on the host if it does not exist.
1 parent d5d61f0 commit 2eeb2f9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Vagrantfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
2626
rsync__auto: "true",
2727
rsync__exclude: synced_folder['excluded_paths'],
2828
rsync__args: ["--verbose", "--archive", "--delete", "-z", "--chmod=ugo=rwX"],
29-
id: synced_folder['id']
29+
id: synced_folder['id'],
30+
create: synced_folder.include?('create') ? synced_folder['create'] : false
3031
end
3132

3233
if is_windows

example.config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ vagrant_synced_folders:
1313
destination: /var/www
1414
id: drupal
1515
type: nfs
16+
create: true
1617

1718
# Memory and CPU to use for this VM.
1819
vagrant_memory: 1024

0 commit comments

Comments
 (0)