Skip to content

Commit

Permalink
sshfs_mount: make mountpoint accessible to all
Browse files Browse the repository at this point in the history
  • Loading branch information
dustymabe committed Mar 30, 2016
1 parent 01cd3f0 commit 91117f8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/vagrant-sshfs/cap/linux/sshfs_mount.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ def self.sshfs_mount_folder(machine, opts)
expanded_guest_path = machine.guest.capability(
:shell_expand_guest_path, opts[:guestpath])

# Do the actual creating and mounting
machine.communicate.sudo("mkdir -p #{expanded_guest_path}")
# Create the mountpoint inside the guest
machine.communicate.tap do |comm|
comm.sudo("mkdir -p #{expanded_guest_path}")
comm.sudo("chmod 777 #{expanded_guest_path}")
end

# Mount path information
hostpath = opts[:hostpath].dup
Expand Down

0 comments on commit 91117f8

Please sign in to comment.