From 3de16f20b90d4e139762a2fd1d2b7114c6340f06 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 12 Mar 2014 21:05:25 -0700 Subject: [PATCH] privisioner/chef-client: don't chown with ubuntu [GH-939] --- CHANGELOG.md | 1 + provisioner/chef-client/provisioner.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 265ccfade..f8cd6b5d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/provisioner/chef-client/provisioner.go b/provisioner/chef-client/provisioner.go index 02a9390f6..205b06c7e 100644 --- a/provisioner/chef-client/provisioner.go +++ b/provisioner/chef-client/provisioner.go @@ -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 {