Merge pull request #5230 from berendt/issue_5228
Add a note to the "external script" section how to run existing scripts
This commit is contained in:
commit
cc63ba34cb
|
@ -136,6 +136,15 @@ that the external path has the proper extension (".bat" or ".ps1"), because
|
||||||
Windows uses this to determine what kind fo file it is to execute. If you
|
Windows uses this to determine what kind fo file it is to execute. If you
|
||||||
exclude this extension, it likely won't work.
|
exclude this extension, it likely won't work.
|
||||||
|
|
||||||
|
To run a script already available on the guest you have to use an inline script.
|
||||||
|
|
||||||
|
```ruby
|
||||||
|
Vagrant.configure("2") do |config|
|
||||||
|
config.vm.provision "shell",
|
||||||
|
inline: "/path/to/the/script/on/the/guest"
|
||||||
|
end
|
||||||
|
```
|
||||||
|
|
||||||
## Script Arguments
|
## Script Arguments
|
||||||
|
|
||||||
You can parameterize your scripts as well like any normal shell script.
|
You can parameterize your scripts as well like any normal shell script.
|
||||||
|
|
Loading…
Reference in New Issue