Skip to content

Commit

Permalink
Allow opensearch-dashboard user to read its config (opensearch-projec…
Browse files Browse the repository at this point in the history
…t#4038)

Signed-off-by: Romain Tartière <[email protected]>
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
smortex authored and peterzhuamazon committed Mar 14, 2024
1 parent 4f3baff commit 15aeeb4
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 @@ -41,6 +41,7 @@ echo " If you are configuring tools that require read access to the OpenSearch D
echo " For more information, see https://github.com/opensearch-project/opensearch-build/pull/4043"

# 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 @@ -83,6 +83,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 15aeeb4

Please sign in to comment.