diff --git a/elasticsearch-init/Dockerfile b/elasticsearch-init/Dockerfile index f6cf23a..8e6a8f4 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/config/opensearch-security /elasticsearch/default-securityconfig -RUN chmod -c 755 /usr/local/bin/config-merger.sh +RUN chmod -c 777 /usr/local/bin/config-merger.sh -ENTRYPOINT ["/bin/bash","/usr/local/bin/config-merger.sh"] \ No newline at end of file +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"]