From 8d4eb809a04fa83977164efe41e99d33674b5fbd Mon Sep 17 00:00:00 2001 From: Piotr Szmytka Date: Tue, 25 Sep 2018 15:55:26 +0200 Subject: [PATCH] Update only the leaf of the logfile_path --- providers/agent_java.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/providers/agent_java.rb b/providers/agent_java.rb index 0a56ecbe..3cf7a2cf 100644 --- a/providers/agent_java.rb +++ b/providers/agent_java.rb @@ -88,13 +88,12 @@ def generate_agent_config def allow_app_group_write_to_log_file_path path = new_resource.logfile_path - until path.nil? || path.empty? || path == ::File::SEPARATOR + unless path.nil? || path.empty? directory path do group new_resource.app_group mode '0775' action :create end - path = ::File.dirname(path) end end