Skip to content

Commit 1f7078c

Browse files
Jay Zhuerichelgeson
authored andcommitted
Add -no-same-owner parameter to tar extract to avoid issues when the
chef cache dir is on an NFS mounted drive.
1 parent 0c5c041 commit 1f7078c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/ark.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def download_direct_from_oracle(tarball_name, new_resource)
153153
end
154154
when /^.*\.(tar.gz|tgz)/
155155
cmd = shell_out(
156-
%Q[ tar xvzf "#{Chef::Config[:file_cache_path]}/#{tarball_name}" -C "#{Chef::Config[:file_cache_path]}" ]
156+
%Q[ tar xvzf "#{Chef::Config[:file_cache_path]}/#{tarball_name}" -C "#{Chef::Config[:file_cache_path]}" --no-same-owner]
157157
)
158158
unless cmd.exitstatus == 0
159159
Chef::Application.fatal!("Failed to extract file #{tarball_name}!")

0 commit comments

Comments
 (0)