-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix/fix-utf8-validation
- Loading branch information
Showing
786 changed files
with
18,718 additions
and
61,014 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
.github/actions/test-install-components/install_component.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
package_name=$1 | ||
target=$2 | ||
|
||
# Check parameters | ||
if [ -z "$package_name" ] || [ -z "$target" ]; then | ||
echo "Error: Both package_name and target must be provided." | ||
echo "Usage: $0 <package_name> <target>" | ||
exit 1 | ||
fi | ||
|
||
echo "Installing Wazuh $target." | ||
|
||
if [ -n "$(command -v yum)" ]; then | ||
install="yum install -y --nogpgcheck" | ||
installed_log="/var/log/yum.log" | ||
elif [ -n "$(command -v dpkg)" ]; then | ||
install="dpkg --install" | ||
installed_log="/var/log/dpkg.log" | ||
else | ||
common_logger -e "Couldn't find type of system" | ||
exit 1 | ||
fi | ||
|
||
if [ "${ARCH}" = "i386" ] || [ "${ARCH}" = "armhf" ]; then | ||
linux="linux32" | ||
if [ "${ARCH}" = "armhf" ] && [ "${SYSTEM}" = "rpm" ]; then | ||
install="rpm -ivh --force --ignorearch" | ||
WAZUH_MANAGER="10.0.0.2" $linux $install "/packages/$package_name"| tee /packages/status.log | ||
if [ "$(rpm -qa | grep wazuh-agent)" ]; then | ||
echo " installed wazuh-agent" >> /packages/status.log | ||
exit 0 | ||
fi | ||
fi | ||
fi | ||
|
||
WAZUH_MANAGER="10.0.0.2" $linux $install "/packages/$package_name"| tee /packages/status.log | ||
grep -i " installed.*wazuh-$target" $installed_log| tee -a /packages/status.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.