Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
43db2c23
Commit
43db2c23
authored
Jul 03, 2013
by
Geoffrey Bachelet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
provisioner/shell: execute script directly instead of using /bin/sh
parent
2a7b3710
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
provisioner/shell/provisioner.go
provisioner/shell/provisioner.go
+1
-1
website/source/docs/provisioners/shell.html.markdown
website/source/docs/provisioners/shell.html.markdown
+1
-1
No files found.
provisioner/shell/provisioner.go
View file @
43db2c23
...
...
@@ -62,7 +62,7 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
}
if
p
.
config
.
ExecuteCommand
==
""
{
p
.
config
.
ExecuteCommand
=
"
{{.Vars}} sh
{{.Path}}"
p
.
config
.
ExecuteCommand
=
"
chmod +x {{.Path}}; {{.Vars}}
{{.Path}}"
}
if
p
.
config
.
Inline
!=
nil
&&
len
(
p
.
config
.
Inline
)
==
0
{
...
...
website/source/docs/provisioners/shell.html.markdown
View file @
43db2c23
...
...
@@ -51,7 +51,7 @@ Optional parameters:
`key=value`
.
*
`execute_command`
(string) - The command to use to execute the script.
By default this is
`
{{ .Vars }} sh
{{ .Path }}`
. The value of this is
By default this is
`
chmod +x {{ .Path }}; {{ .Vars }}
{{ .Path }}`
. The value of this is
treated as
[
configuration template
](
/docs/templates/configuration-
templates.html). There are two available variables:
`Path`
, which is
the path to the script to run, and
`Vars`
, which is the list of
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment