From 9dca2f589a69e7b32bbc4197bd5492bf9aeffc10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20Rodr=C3=ADguez?= Date: Thu, 7 Apr 2022 22:00:48 +0200 Subject: [PATCH] Update entrypoint.sh --- indexer-certs-creator/config/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indexer-certs-creator/config/entrypoint.sh b/indexer-certs-creator/config/entrypoint.sh index 9c25d705..84382867 100644 --- a/indexer-certs-creator/config/entrypoint.sh +++ b/indexer-certs-creator/config/entrypoint.sh @@ -39,7 +39,7 @@ chmod 700 /$CERT_TOOL ## Execute cert tool and parsin cert.yml to set UID permissions source /$CERT_TOOL -A nodes_server=$( cert_parseYaml /config.yml | grep nodes_server_name | sed 's/nodes_server_name=//' ) -node_name=($nodes_server) +node_names=($nodes_server) echo "Moving created certificates to destination directory" cp /wazuh-certificates/* /certificates/ @@ -54,7 +54,7 @@ cp /certificates/root-ca.key /certificates/root-ca-manager.key chown 999:997 /certificates/root-ca-manager.pem chown 999:997 /certificates/root-ca-manager.key -for i in ${node_name[@]}; +for i in ${node_names[@]}; do chown 999:997 "/certificates/${i}.pem" chown 999:997 "/certificates/${i}-key.pem"