Skip to content
This repository was archived by the owner on Feb 28, 2020. It is now read-only.

Commit 637d3bd

Browse files
authored
Merge pull request #25 from devcrops-official/master
Update soa_suite.rb to fix error 'No such file or directory - unzip' …
2 parents ec22a76 + 123f546 commit 637d3bd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

fmw_rcu/recipes/soa_suite.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,9 @@
6262
'OPSS',
6363
'BAM']
6464

65+
path = ::File.join(node['fmw']['middleware_home_dir'],'wlserver_10.3','server','adr')
66+
6567
if platform_family?('windows')
66-
67-
path = "#{node['fmw']['middleware_home_dir']}\\wlserver_10.3\\server\\adr"
68-
6968
execute "extract rcu file" do
7069
command "#{path}\\unzip.exe -o #{node['fmw_rcu']['source_file']} -d #{node['fmw']['tmp_dir']}\\rcu"
7170
cwd node['fmw']['tmp_dir']
@@ -74,7 +73,7 @@
7473
oracle_home_dir = "#{node['fmw']['tmp_dir']}\\rcu\\rcuHome"
7574
else
7675
execute "extract rcu file" do
77-
command "unzip -o #{node['fmw_rcu']['source_file']} -d #{node['fmw']['tmp_dir']}/rcu"
76+
command "#{path}/unzip -o #{node['fmw_rcu']['source_file']} -d #{node['fmw']['tmp_dir']}/rcu"
7877
cwd node['fmw']['tmp_dir']
7978
user node['fmw']['os_user']
8079
group node['fmw']['os_group']

0 commit comments

Comments
 (0)