From 33096a692a993649c65deedb2d3244ed2518d0c8 Mon Sep 17 00:00:00 2001 From: bravo-kernel Date: Fri, 6 Mar 2015 09:05:35 +0100 Subject: [PATCH] Fixes default mount-options --- .cakebox/Vagrantfile.rb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.cakebox/Vagrantfile.rb b/.cakebox/Vagrantfile.rb index 98ba539..f5bf114 100644 --- a/.cakebox/Vagrantfile.rb +++ b/.cakebox/Vagrantfile.rb @@ -49,18 +49,19 @@ def Cakebox.configure(config, user_settings) unless settings["synced_folders"].nil? settings["synced_folders"].each do |folder| - # On Windows mounts are created with loosened permissions so the vagrant - # user will be able to execute files (like composer installed binaries) - # inside shared folder. + # On Windows mounts are always created with loosened permissions so the + # vagrant user will be able to execute files (like composer installed + # binaries) inside the shared folders. if Vagrant::Util::Platform.windows? config.vm.synced_folder folder["local"], folder["remote"], :mount_options => ["dmode=777","fmode=766"], create: true end - # On Linux/Mac mounts are created using the vagrant default settings - # UNLESS the user has specified supported mount options in Cakebox.yaml. + # On Linux/Mac mounts are by created with the same loose permissions as + # as used on Windows UNLESS the user specifies his own (Vagrant supported) + # mount options in Cakebox.yaml. unless Vagrant::Util::Platform.windows? if folder["mount_options"].nil? - config.vm.synced_folder folder["local"], folder["remote"], create: true + config.vm.synced_folder folder["local"], folder["remote"], :mount_options => ["dmode=777","fmode=766"], create: true else config.vm.synced_folder folder["local"], folder["remote"], create: true, :mount_options => [folder["mount_options"]] end