Skip to content

Commit

Permalink
Allow opensearch-dashboard user to read its config (#4038)
Browse files Browse the repository at this point in the history
Signed-off-by: Romain Tartière <[email protected]>
  • Loading branch information
smortex authored and peterzhuamazon committed Sep 19, 2023
1 parent f326c04 commit 39e7562
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ echo "### You can start opensearch-dashboards service by executing"
echo " sudo systemctl start opensearch-dashboards.service"

# Set ownership and permissions
chown -R root.opensearch-dashboards ${config_dir}
chmod -R u=rwX,g=rX,o= ${config_dir}

chown -R opensearch-dashboards.adm ${log_dir}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ exit 0

%post
set -e
chown -R root.%{name} %{config_dir}
# Reload systemctl daemon
if command -v systemctl > /dev/null; then
systemctl daemon-reload
Expand Down

0 comments on commit 39e7562

Please sign in to comment.