diff --git a/elasticsearch-init/Dockerfile b/elasticsearch-init/Dockerfile index 71a559e..44a6cc5 100644 --- a/elasticsearch-init/Dockerfile +++ b/elasticsearch-init/Dockerfile @@ -21,6 +21,12 @@ COPY --from=yq /yq /usr/bin/yq COPY --from=elasticsearch /usr/share/opensearch/config /elasticsearch/default-config COPY --from=elasticsearch /usr/share/opensearch/plugins/opensearch-security/securityconfig /elasticsearch/default-securityconfig -RUN chmod -c 755 /usr/local/bin/config-merger.sh +RUN chmod -c 777 /usr/local/bin/config-merger.sh + +RUN chgrp -R 0 /elasticsearch/default-config \ + && chmod -R g=u /elasticsearch/default-config + +RUN chgrp -R 0 /elasticsearch/default-securityconfig \ + && chmod -R g=u /elasticsearch/default-securityconfig ENTRYPOINT ["/bin/bash","/usr/local/bin/config-merger.sh"]