mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-01 20:43:35 +00:00
11 lines
531 B
Bash
11 lines
531 B
Bash
## variables
|
|
REPOSITORY="packages-dev.wazuh.com/pre-release"
|
|
WAZUH_TAG=$(curl --silent https://api.github.com/repos/wazuh/wazuh/git/refs/tags | grep '["]ref["]:' | sed -E 's/.*\"([^\"]+)\".*/\1/' | cut -c 11- | grep ^v${WAZUH_VERSION}$)
|
|
|
|
## check tag to use the correct repository
|
|
if [[ -n "${WAZUH_TAG}" ]]; then
|
|
REPOSITORY="packages.wazuh.com/4.x"
|
|
fi
|
|
|
|
yum install filebeat-${FILEBEAT_VERSION}-${FILEBEAT_REVISION} -y && \
|
|
curl -s https://${REPOSITORY}/filebeat/${WAZUH_FILEBEAT_MODULE} | tar -xvz -C /usr/share/filebeat/module |