forked from wazuh/wazuh-docker
Updated config.sh for wazuh indexer
This commit is contained in:
@@ -8,6 +8,3 @@ export CONFIG_DIR=${INSTALLATION_DIR}/config
|
|||||||
|
|
||||||
# Modify opensearch.yml config paths
|
# Modify opensearch.yml config paths
|
||||||
sed -i "s|/etc/wazuh-dashboard|${CONFIG_DIR}|g" ${CONFIG_DIR}/opensearch_dashboards.yml
|
sed -i "s|/etc/wazuh-dashboard|${CONFIG_DIR}|g" ${CONFIG_DIR}/opensearch_dashboards.yml
|
||||||
|
|
||||||
chmod -R 500 ${CONFIG_DIR}/certs
|
|
||||||
chmod -R 400 ${CONFIG_DIR}/certs/*
|
|
||||||
|
|||||||
@@ -19,8 +19,5 @@ if [ -d "/etc/wazuh-indexer" ]; then
|
|||||||
fi
|
fi
|
||||||
sed -i "s|/etc/wazuh-indexer|${CONFIG_DIR}|g" ${CONFIG_DIR}/opensearch.yml
|
sed -i "s|/etc/wazuh-indexer|${CONFIG_DIR}|g" ${CONFIG_DIR}/opensearch.yml
|
||||||
|
|
||||||
sed -i 's/-Djava.security.policy=file:\/\/\/etc\/wazuh-indexer\/opensearch-performance-analyzer\/opensearch_security.policy/-Djava.security.policy=file:\/\/\/usr\/share\/wazuh-indexer\/opensearch-performance-analyzer\/opensearch_security.policy/g' /etc/wazuh-indexer/jvm.options
|
sed -i 's/-Djava.security.policy=file:\/\/\/etc\/wazuh-indexer\/opensearch-performance-analyzer\/opensearch_security.policy/-Djava.security.policy=file:\/\/\/usr\/share\/wazuh-indexer\/opensearch-performance-analyzer\/opensearch_security.policy/g' ${CONFIG_DIR}/jvm.options
|
||||||
|
|
||||||
chown -R ${USER}:${GROUP} ${CONFIG_DIR}
|
|
||||||
chmod -R 500 ${CONFIG_DIR}/certs
|
|
||||||
chmod -R 400 ${CONFIG_DIR}/certs/*
|
|
||||||
|
|||||||
Reference in New Issue
Block a user