forked from wazuh/wazuh-docker
Test CI
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@ WAZUH_IMAGE_VERSION=4.3.1
|
|||||||
WAZUH_VERSION=$(echo $WAZUH_IMAGE_VERSION | sed -e 's/\.//g')
|
WAZUH_VERSION=$(echo $WAZUH_IMAGE_VERSION | sed -e 's/\.//g')
|
||||||
WAZUH_ACTUAL_VERSION=$(curl --silent https://api.github.com/repos/wazuh/wazuh/releases/latest | grep '\"tag_name\":' | sed -E 's/.*\"([^\"]+)\".*/\1/' | cut -c 2- | sed -e 's/\.//g')
|
WAZUH_ACTUAL_VERSION=$(curl --silent https://api.github.com/repos/wazuh/wazuh/releases/latest | grep '\"tag_name\":' | sed -E 's/.*\"([^\"]+)\".*/\1/' | cut -c 2- | sed -e 's/\.//g')
|
||||||
|
|
||||||
## If wazuh manager exists in apt dev repository, change variables, if not exit 1
|
## If wazuh manager exists in apt dev repository, change variables, if not, exit 1
|
||||||
if [ "$WAZUH_VERSION" -le "$WAZUH_ACTUAL_VERSION" ]; then
|
if [ "$WAZUH_VERSION" -le "$WAZUH_ACTUAL_VERSION" ]; then
|
||||||
IMAGE_VERSION=${WAZUH_IMAGE_VERSION}
|
IMAGE_VERSION=${WAZUH_IMAGE_VERSION}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user