mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-02 21:13:30 +00:00
Merge pull request #684 from wazuh/fix-keystore-create
Add option to recreate keystore in entrypoint
This commit is contained in:
@@ -21,11 +21,6 @@ COPY config/config.sh .
|
|||||||
COPY config/config.yml /
|
COPY config/config.yml /
|
||||||
RUN bash config.sh
|
RUN bash config.sh
|
||||||
|
|
||||||
# Create and configure Wazuh dashboard keystore
|
|
||||||
RUN $INSTALL_DIR/bin/opensearch-dashboards-keystore create --allow-root && \
|
|
||||||
echo kibanaserver | $INSTALL_DIR/bin/opensearch-dashboards-keystore add opensearch.username --stdin --allow-root && \
|
|
||||||
echo kibanaserver | $INSTALL_DIR/bin/opensearch-dashboards-keystore add opensearch.password --stdin --allow-root
|
|
||||||
|
|
||||||
COPY config/install_wazuh_app.sh /
|
COPY config/install_wazuh_app.sh /
|
||||||
RUN chmod 775 /install_wazuh_app.sh
|
RUN chmod 775 /install_wazuh_app.sh
|
||||||
RUN bash /install_wazuh_app.sh
|
RUN bash /install_wazuh_app.sh
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ DASHBOARD_PASSWORD="${DASHBOARD_PASSWORD:-kibanaserver}"
|
|||||||
|
|
||||||
# Create and configure Wazuh dashboard keystore
|
# Create and configure Wazuh dashboard keystore
|
||||||
|
|
||||||
$INSTALL_DIR/bin/opensearch-dashboards-keystore create --allow-root && \
|
yes | $INSTALL_DIR/bin/opensearch-dashboards-keystore create --allow-root && \
|
||||||
echo $DASHBOARD_USERNAME | $INSTALL_DIR/bin/opensearch-dashboards-keystore add opensearch.username --stdin --allow-root && \
|
echo $DASHBOARD_USERNAME | $INSTALL_DIR/bin/opensearch-dashboards-keystore add opensearch.username --stdin --allow-root && \
|
||||||
echo $DASHBOARD_PASSWORD | $INSTALL_DIR/bin/opensearch-dashboards-keystore add opensearch.password --stdin --allow-root
|
echo $DASHBOARD_PASSWORD | $INSTALL_DIR/bin/opensearch-dashboards-keystore add opensearch.password --stdin --allow-root
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user