summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTal Gitelman <tal.gitelman@att.com>2019-01-28 19:49:33 +0200
committerTal Gitelman <tal.gitelman@att.com>2019-01-28 17:53:28 +0000
commitd922d1d384e04a16f3f5e820cc2cadbd63dc6ffc (patch)
treeab29a5ea194a2d460484f08db3aa7c176040ba5a
parent47ca1ad801a786d6b757032fbf34f046b7a9c0dc (diff)
SDC-BE and SDC-FE missing log files
Change-Id: Ie73b016c77d35a3f82b270752173a16a5355dcf9 Issue-ID: SDC-2077 Signed-off-by: Tal Gitelman <tal.gitelman@att.com>
-rw-r--r--catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_1_cleanup_jettydir.rb9
-rw-r--r--catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/recipes/FE_1_cleanup_jettydir.rb9
2 files changed, 18 insertions, 0 deletions
diff --git a/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_1_cleanup_jettydir.rb b/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_1_cleanup_jettydir.rb
index 1de29548f3..14cfe04213 100644
--- a/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_1_cleanup_jettydir.rb
+++ b/catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_1_cleanup_jettydir.rb
@@ -22,3 +22,12 @@ directory "BE_create_catalog-be" do
mode '0755'
action :create
end
+
+directory "BE_create_log_dir" do
+ path "#{ENV['JETTY_BASE']}/logs/SDC/SDC-BE"
+ owner 'jetty'
+ group 'jetty'
+ mode '0755'
+ action :create
+ recursive true
+end \ No newline at end of file
diff --git a/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/recipes/FE_1_cleanup_jettydir.rb b/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/recipes/FE_1_cleanup_jettydir.rb
index 7449518f87..7dd8bb0038 100644
--- a/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/recipes/FE_1_cleanup_jettydir.rb
+++ b/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/recipes/FE_1_cleanup_jettydir.rb
@@ -30,4 +30,13 @@ directory "FE_create_catalog-fe" do
group 'jetty'
mode '0755'
action :create
+end
+
+directory "FE_create_log_dir" do
+ path "#{ENV['JETTY_BASE']}/logs/SDC/SDC-FE/"
+ owner 'jetty'
+ group 'jetty'
+ mode '0755'
+ action :create
+ recursive true
end \ No newline at end of file