1 # Create or update the needed directories/links.
2 # If the directory already exists, it is updated to match
4 # LOGROOT should already be created by the SWM installation script
5 # It needs to run as root
8 "#{node['aai-resources-config']['LOGROOT']}/AAI-RES",
9 "#{node['aai-resources-config']['LOGROOT']}/AAI-RES/data",
10 "#{node['aai-resources-config']['LOGROOT']}/AAI-RES/misc",
11 "#{node['aai-resources-config']['LOGROOT']}/AAI-RES/ajsc-jetty" ].each do |path|
21 [ "#{node['aai-resources-config']['PROJECT_HOME']}/bundleconfig/etc/auth" ].each do |path|
31 link "#{node['aai-resources-config']['PROJECT_HOME']}/logs" do
32 to "#{node['aai-resources-config']['LOGROOT']}/AAI-RES"
38 #Make a link from /opt/app/aai-resources/scripts to /opt/app/aai-resources/bin
39 link "#{node['aai-resources-config']['PROJECT_HOME']}/scripts" do
40 to "#{node['aai-resources-config']['PROJECT_HOME']}/bin"