mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-10-24 08:33:46 +00:00
Merge pull request #915 from wazuh/911-typos-in-the-script
Typos in the script in charge of create Wazuh indexer's certificates
This commit is contained in:
@@ -17,13 +17,13 @@ CERT_TOOL_PACKAGES_DEV=$(curl --silent -I $PACKAGES_DEV_URL$CERT_TOOL | grep -E
|
|||||||
|
|
||||||
## If cert tool exists in some bucket, download it, if not exit 1
|
## If cert tool exists in some bucket, download it, if not exit 1
|
||||||
if [ "$CERT_TOOL_PACKAGES" = "200" ]; then
|
if [ "$CERT_TOOL_PACKAGES" = "200" ]; then
|
||||||
curl -o $CERT_TOOL $PACKAGES_URL$CERT_TOOL
|
curl -o $CERT_TOOL $PACKAGES_URL$CERT_TOOL -s
|
||||||
echo "Cert tool exists in Packages bucket"
|
echo "The tool to create the certificates exists in the in Packages bucket"
|
||||||
elif [ "$CERT_TOOL_PACKAGES_DEV" = "200" ]; then
|
elif [ "$CERT_TOOL_PACKAGES_DEV" = "200" ]; then
|
||||||
curl -o $CERT_TOOL $PACKAGES_DEV_URL$CERT_TOOL
|
curl -o $CERT_TOOL $PACKAGES_DEV_URL$CERT_TOOL -s
|
||||||
echo "Cert tool exists in Packages-dev bucket"
|
echo "The tool to create the certificates exists in Packages-dev bucket"
|
||||||
else
|
else
|
||||||
echo "Cert tool does not exist in any bucket"
|
echo "The tool to create the certificates does not exist in any bucket"
|
||||||
echo "ERROR: certificates were not created"
|
echo "ERROR: certificates were not created"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -41,9 +41,9 @@ source /$CERT_TOOL -A
|
|||||||
nodes_server=$( cert_parseYaml /config.yml | grep nodes_server__name | sed 's/nodes_server__name=//' )
|
nodes_server=$( cert_parseYaml /config.yml | grep nodes_server__name | sed 's/nodes_server__name=//' )
|
||||||
node_names=($nodes_server)
|
node_names=($nodes_server)
|
||||||
|
|
||||||
echo "Moving created certificates to destination directory"
|
echo "Moving created certificates to the destination directory"
|
||||||
cp /wazuh-certificates/* /certificates/
|
cp /wazuh-certificates/* /certificates/
|
||||||
echo "changing certificate permissions"
|
echo "Changing certificate permissions"
|
||||||
chmod -R 500 /certificates
|
chmod -R 500 /certificates
|
||||||
chmod -R 400 /certificates/*
|
chmod -R 400 /certificates/*
|
||||||
echo "Setting UID indexer and dashboard"
|
echo "Setting UID indexer and dashboard"
|
||||||
|
|||||||
Reference in New Issue
Block a user