Skip to content

Commit

Permalink
[#79] only set group permission with bindfs
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Calef committed Mar 2, 2021
1 parent 1ecd500 commit 4729184
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ Vagrant.configure(2) do |config|
# Default options
config.vm.synced_folder '.', '/vagrant', disabled: true

# Bindfs options
config.bindfs.default_options = {
force_group: 'www-data',
}
# NFS mount
if vmconf['mount'] == 'nfs'
if OS.is_windows
Expand Down Expand Up @@ -91,6 +95,9 @@ Vagrant.configure(2) do |config|
config.vm.synced_folder hostDirectory, guestDirectory, create: true
end

# Bindfs
config.bindfs.bind_folder guestDirectory, guestDirectory, after: :provision

# SSH key provisioning
config.vm.provision 'file', source: './ssh/id_rsa', destination: '~/.ssh/id_rsa'
config.vm.provision 'file', source: './ssh/id_rsa.pub', destination: '~/.ssh/id_rsa.pub'
Expand Down

0 comments on commit 4729184

Please sign in to comment.