Merge "bug fix for health check"
[sdc.git] / utils / webseal-simulator / sdc-simulator / chef-repo / cookbooks / sdc-simulator / recipes / SDC_Simulator_5_create_jetty_modules.rb
1 jetty_base="/var/lib/jetty"
2 jetty_home="/usr/local/jetty"
3
4 ###### create Jetty modules
5 bash "create-jetty-modules" do
6 cwd "#{jetty_base}"
7 code <<-EOH
8    cd "#{jetty_base}"
9    java -jar "/#{jetty_home}"/start.jar --add-to-start=deploy
10    java -jar "/#{jetty_home}"/start.jar --add-to-startd=http,https,logging,setuid
11 EOH
12 not_if "ls /#{jetty_base}/start.d/https.ini"
13 end
14