Fix OpenSearch file ownership issues
Since 2.13 OpenSearch and OpenSearch-Dashboards packages
install files in /usr/share/opensearch and
/usr/share/opensearch-dashboards with root:root ownership
instead of using opensearch/opensearch-dashboards user.
Closes-Bug: #2061877
Change-Id: I3831d8ab76c8c7136ce7869db3d0d1e05b4ba8f8
(cherry picked from commit 7c098bdd3c
)
This commit is contained in:
parent
66c7dec630
commit
8cdfa5c00e
@ -14,6 +14,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
||||
|
||||
{{ macros.install_packages(opensearch_dashboards_packages | customizable("packages")) }}
|
||||
|
||||
RUN chown -R opensearch-dashboards:opensearch-dashboards /usr/share/opensearch-dashboards
|
||||
|
||||
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
||||
RUN chmod 755 /usr/local/bin/kolla_extend_start
|
||||
|
||||
|
@ -18,6 +18,8 @@ ENV OPENSEARCH_INITIAL_ADMIN_PASSWORD="Kolla24OpenSearch"
|
||||
|
||||
{{ macros.install_packages(opensearch_packages | customizable("packages")) }}
|
||||
|
||||
RUN chown -R opensearch:opensearch /usr/share/opensearch
|
||||
|
||||
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
||||
RUN chmod 755 /usr/local/bin/kolla_extend_start
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user