Commit 97fd7802 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

Merge pull request #2211 from mitchellh/b-script-perms

provisioner/shell: uploaded script should be 0755 [GH-1708]
parents 33724d38 a995df35
......@@ -247,11 +247,11 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) error {
}
cmd = &packer.RemoteCmd{
Command: fmt.Sprintf("chmod 0777 %s", p.config.RemotePath),
Command: fmt.Sprintf("chmod 0755 %s", p.config.RemotePath),
}
if err := comm.Start(cmd); err != nil {
return fmt.Errorf(
"Error chmodding script file to 0777 in remote "+
"Error chmodding script file to 0755 in remote "+
"machine: %s", err)
}
cmd.Wait()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment