Commit 3de16f20 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

privisioner/chef-client: don't chown with ubuntu [GH-939]

parent 3c59d0ef
......@@ -17,6 +17,7 @@ BUG FIXES:
which works for every region. [GH-904]
* builder/virtualbox-iso: Retry unregister a few times to deal with
VBoxManage randomness. [GH-915]
* provisioners/chef-client: Don't chown directory with Ubuntu. [GH-939]
## 0.5.2 (02/21/2014)
......
......@@ -311,7 +311,7 @@ func (p *Provisioner) createJson(ui packer.Ui, comm packer.Communicator) (string
func (p *Provisioner) createDir(ui packer.Ui, comm packer.Communicator, dir string) error {
ui.Message(fmt.Sprintf("Creating directory: %s", dir))
cmd := &packer.RemoteCmd{
Command: fmt.Sprintf("sudo mkdir -p '%s' && sudo chown ubuntu '%s'", dir, dir),
Command: fmt.Sprintf("sudo mkdir -p '%s'", dir),
}
if err := cmd.StartWithUi(comm, ui); err != nil {
......
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