aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/docker/backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_1_cleanup_jettydir.rb
blob: 7ca3db813f51aff542c6580d2b9e6ab94a050818 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
unless Dir.exist? "#{ENV['JETTY_BASE']}/temp"
  directory "BE_tempdir_creation" do
    path "#{ENV['JETTY_BASE']}/temp"
    owner 'jetty'
    group 'jetty'
    mode '0755'
    action :create
  end
end

unless Dir.exist? "#{ENV['JETTY_BASE']}/config"
  directory "BE_create_config_dir" do
    path "#{ENV['JETTY_BASE']}/config"
    owner 'jetty'
    group 'jetty'
    mode '0755'
    action :create
  end
end

unless Dir.exist? "#{ENV['JETTY_BASE']}/config/catalog-be"
  directory "BE_create_catalog-be" do
    path "#{ENV['JETTY_BASE']}/config/catalog-be"
    owner 'jetty'
    group 'jetty'
    mode '0755'
    action :create
  end
end