hello

as long in the same level where your Vagrantfile is, vagrant will copy
setup.sh, set the execute flag and run it.

inside the VM you can do

cd /vagrant
sudo ./setup.sh and should have the same effect.



On Fri, Jul 7, 2017 at 2:49 PM, Larry Martell <[email protected]>
wrote:

> I have a directory that sometimes is used in a native environment on bare
> metal and other times used in a VM started with vagrant up. The only
> difference is a few config files. What is the accepted way of getting the
> VM version of the config files in place when a vagrant up is run?
>
> I tried running a setup.sh script that uses here docs and sed, but it
> seems like the script does not run. I have this line in my Vagrantfile:
>
> web.vm.provision :shell, :path => "setup.sh"
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/vagrant-up/81ca6346-88d2-422a-8fbb-e34fbd165bc5%40googlegroups.com
> <https://groups.google.com/d/msgid/vagrant-up/81ca6346-88d2-422a-8fbb-e34fbd165bc5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Alvaro

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/CAHqq0exffdyeOaorT-GarUyF7XaoyawVCH0vtqb%2Bcy%2Bk9fooyg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to