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

This commit is contained in:
Mitchell Hashimoto 2014-03-12 21:05:25 -07:00
parent 3c59d0ef96
commit 3de16f20b9
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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 {