Change UID user on build stage

This commit is contained in:
Victor Carlos Erenu
2026-05-13 21:23:26 +07:00
parent 6b9e2fbfb3
commit a70b0bd492
5 changed files with 76 additions and 12 deletions
@@ -13,7 +13,9 @@ export CONFIG_DIR=${INSTALLATION_DIR}/config
# Modify opensearch.yml config paths
if [ -d "/etc/wazuh-indexer" ]; then
mkdir -p ${CONFIG_DIR}
chown ${USER}:${GROUP} ${CONFIG_DIR}
mkdir -p ${CONFIG_DIR}/certs
chown ${USER}:${GROUP} ${CONFIG_DIR}/certs
mv /etc/wazuh-indexer/* ${CONFIG_DIR}/
rmdir /etc/wazuh-indexer
fi