Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix windows shell provisioner #45

Closed
wants to merge 2 commits into from
Closed

Fix windows shell provisioner #45

wants to merge 2 commits into from

Conversation

patux
Copy link
Contributor

@patux patux commented May 20, 2013

This patch fixes issue: #38

This commit adds monkey_patches to make shell provisioner to work
on windows.

Fix mkdir parameter
mkdir parameter did not work properly
@sneal
Copy link
Member

sneal commented May 22, 2013

I'll take a look at this PR this week.

@patux
Copy link
Contributor Author

patux commented May 22, 2013

Thanks

@sneal
Copy link
Member

sneal commented May 24, 2013

@patux Which syntax are you using in your Vagrantfiles with the shell provisioner? External script path or inline?

config.vm.provision :shell, :path => "script.ps1"
config.vm.provision :shell, :inline => "echo Hello, World"

@patux
Copy link
Contributor Author

patux commented May 24, 2013

@sneal always external, if the script is internal there is no extensión... so that part will likely fail, cause windows will not know which interpreter to use to execute c:\tmp\vagrant-shell, but that is what is happening right now... I haven't figure out how to improve that.. but right now to me is a minor issue.... I do preffer to have something working that nothing working.

@sneal
Copy link
Member

sneal commented May 28, 2013

inline scripts will definitely fail. External scripts look like they might fail too since I believe this is pulling the file extension off the temp file and not the source script.

I'm going to work on this today, I need the ability to use inline scripts.

@patux
Copy link
Contributor Author

patux commented May 28, 2013

mmmm I did tests with two different scritps.. (ps1, and .bat) , and it worked..

Let me know if I can help

@sneal sneal mentioned this pull request May 29, 2013
@sneal
Copy link
Member

sneal commented May 29, 2013

I used this PR and extended it to support inline shell scripts.

@sneal sneal closed this May 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants