From 61ffa25dae361f651b8e89f7ec682eaca7927ca7 Mon Sep 17 00:00:00 2001 From: Sean Porter Date: Wed, 26 Apr 2023 14:41:49 -0700 Subject: [PATCH] install script, include log dir acl default group (#1107) releated to https://github.com/SumoLogic/sumologic-otel-collector/issues/1106#issuecomment-1520758676 Signed-off-by: Sean Porter --- scripts/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 17e172e33d..125297afb9 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1121,7 +1121,7 @@ function set_acl_on_log_paths() { for log_path in ${ACL_LOG_FILE_PATHS}; do if [ -d "$log_path" ]; then echo -e "Running: setfacl -R -m d:u:${SYSTEM_USER}:r-x,u:${SYSTEM_USER}:r-x,g:${SYSTEM_USER}:r-x ${log_path}" - setfacl -R -m d:u:${SYSTEM_USER}:r-x,u:${SYSTEM_USER}:r-x,g:${SYSTEM_USER}:r-x "${log_path}" + setfacl -R -m d:u:${SYSTEM_USER}:r-x,d:g:${SYSTEM_USER}:r-x,u:${SYSTEM_USER}:r-x,g:${SYSTEM_USER}:r-x "${log_path}" fi done else @@ -1130,7 +1130,7 @@ function set_acl_on_log_paths() { echo -e "You can fix it manually by installing setfacl and executing the following commands:" for log_path in ${ACL_LOG_FILE_PATHS}; do if [ -d "$log_path" ]; then - echo -e "-> setfacl -R -m d:u:${SYSTEM_USER}:r-x,u:${SYSTEM_USER}:r-x,g:${SYSTEM_USER}:r-x ${log_path}" + echo -e "-> setfacl -R -m d:u:${SYSTEM_USER}:r-x,d:g:${SYSTEM_USER}:r-x,u:${SYSTEM_USER}:r-x,g:${SYSTEM_USER}:r-x ${log_path}" fi done echo ""