Skip to content

Commit

Permalink
fix-no-tty
Browse files Browse the repository at this point in the history
  • Loading branch information
cfoellmann committed Apr 28, 2015
1 parent 304106d commit b01493e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ Vagrant.configure("2") do |config|
config.vm.synced_folder "www/", "/srv/www/", :owner => "www-data", :extra => 'dmode=775,fmode=774'
end

config.vm.provision "fix-no-tty", type: "shell" do |s|
s.privileged = false
s.inline = "sudo sed -i '/tty/!s/mesg n/tty -s \\&\\& mesg n/' /root/.profile"
end

# The Parallels Provider does not understand "dmode"/"fmode" in the "mount_options" as
# those are specific to Virtualbox. The folder is therefore overridden with one that
# uses corresponding Parallels mount options.
Expand Down

0 comments on commit b01493e

Please sign in to comment.