Skip to content

Commit

Permalink
install script, include log dir acl default group (#1107)
Browse files Browse the repository at this point in the history
releated to #1106 (comment)

Signed-off-by: Sean Porter <[email protected]>
  • Loading branch information
portertech committed Apr 26, 2023
1 parent 193d2cf commit 61ffa25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 ""
Expand Down

0 comments on commit 61ffa25

Please sign in to comment.