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
This commit is contained in:
@@ -20,6 +20,8 @@ RUN dnf -y install 'dnf-command(versionlock)' && \
|
||||
|
||||
{{ 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
|
||||
|
||||
|
||||
@@ -23,6 +23,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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user