mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-03 05:23:16 +00:00
Merge pull request #1880 from wazuh/bug/1780-unable-to-run-wazuh-cert-tool-with-proxy
Change validation of existing certs tool in S3 buckets
This commit is contained in:
@@ -9,7 +9,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- None
|
- Change validation of existing certs tool in S3 buckets ([#1880](https://github.com/wazuh/wazuh-docker/pull/1880))
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ PACKAGES_URL=https://packages.wazuh.com/4.14/
|
|||||||
PACKAGES_DEV_URL=https://packages-dev.wazuh.com/4.14/
|
PACKAGES_DEV_URL=https://packages-dev.wazuh.com/4.14/
|
||||||
|
|
||||||
## Check if the cert tool exists in S3 buckets
|
## Check if the cert tool exists in S3 buckets
|
||||||
CERT_TOOL_PACKAGES=$(curl --silent -I $PACKAGES_URL$CERT_TOOL | grep -E "^HTTP" | awk '{print $2}')
|
CERT_TOOL_PACKAGES=$(curl --silent --head --location --output /dev/null --write-out "%{http_code}" "$PACKAGES_URL$CERT_TOOL")
|
||||||
CERT_TOOL_PACKAGES_DEV=$(curl --silent -I $PACKAGES_DEV_URL$CERT_TOOL | grep -E "^HTTP" | awk '{print $2}')
|
CERT_TOOL_PACKAGES_DEV=$(curl --silent --head --location --output /dev/null --write-out "%{http_code}" "$PACKAGES_DEV_URL$CERT_TOOL")
|
||||||
|
|
||||||
## 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
|
||||||
|
|||||||
Reference in New Issue
Block a user