Cert tool URL updates

This commit is contained in:
Gonzalo Acuña
2022-03-14 14:53:48 -03:00
parent ad678638ad
commit 19ad1520c8
6 changed files with 20 additions and 439 deletions
@@ -1,6 +1,21 @@
#!/bin/bash
# Wazuh Docker Copyright (C) 2021 Wazuh Inc. (License GPLv2)
##############################################################################
# Downloading Cert Gen Tool
##############################################################################
FILE=wazuh-cert-tool.sh
#Download from packages.wazuh.com with first parameter
curl -o $FILE https://packages.wazuh.com/4.x/wazuh-cert-tool.sh
var=`grep NoSuchKey $FILE`
#If the content of the file contains NoSuchKey, download from packages-dev.wazuh.com
if [ ! -z "$var" ]; then
curl -o $FILE https://packages-dev.wazuh.com/4.3/wazuh-certs-tool.sh
fi
##############################################################################
# Creating Cluster certificates
##############################################################################