Skip to content

Commit 26b3dab

Browse files
committed
Ensure dirs, links, and jinfo files are owned correctly. Closes #216
1 parent 34de63d commit 26b3dab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

providers/ark.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ def download_direct_from_oracle(tarball_name, new_resource)
188188
template jinfo_file do
189189
cookbook "java"
190190
source "oracle.jinfo.erb"
191+
owner new_resource.owner
192+
group app_group
191193
variables(
192194
:priority => new_resource.alternatives_priority,
193195
:bin_cmds => new_resource.bin_cmds,
@@ -209,6 +211,7 @@ def download_direct_from_oracle(tarball_name, new_resource)
209211
Chef::Log.debug "Symlinking #{app_dir} to #{app_home}"
210212
FileUtils.rm_f app_home
211213
FileUtils.ln_sf app_dir, app_home
214+
FileUtils.chown new_resource.owner, app_group, app_home
212215
end
213216
end
214217

0 commit comments

Comments
 (0)