diff options
author | James Mills <prologic@shortcircuit.net.au> | 2020-02-05 06:03:53 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-05 06:03:53 +1000 |
commit | 04f7154fcaabba8f243a5e7838b194d746bbb659 (patch) | |
tree | ac6d1b29f1d92a32f85cf3f7d4751e559d734c3b /packaging/installer/install-required-packages.sh | |
parent | 0ea96aeebe04e15bdd080f32d00b9b87a0e0705a (diff) |
Adds GHA Workflow to actually Build the Agent across all the OS/Distro(s) we support today (#7969)
* Fixed shellcheck warnings/errors and some legitimate bugs in ./packaging/installer/install-required-packages.sh
* Fixed erroneous \
* Removed accidentally committed test.sh :D
* Remove redundant redirection on grep commands
* Fixed erroneous trailing gon search/replace expression
* Fixed incorrect expansion of in apt-get invocation
* Fixed incorrect expanasion of on other package managers too
* Fixed insistent prompt search/replace (adding space) :D
* Fixed (properly) handling of opts to pakage managers using a proper array and array expansion
* Re-fixed: echo
* Bah humbug :D
* Rebased on master
* Fixed erroneous \
* Added support for CentOS 8.x
* Removed extra space
* Rebased on centos8_deps_2
* Added GHA workflor for testing install-required-packages
* Rebased on centos8_deps_3
* Only test on archlinux:latest
* Add Ubuntu 16.04 and 19.04 to the matrix
* Remove test.sh :)
* Added GHA Workflow to actually Build the Agent across all the OS/Distro(s) we support today
* Added option --netdta-all which seems to tell install-required-pacakges to install all dependencies
* Fixed the netdata-all argument
* Disable centos:8 for now
* Use all argument
* Fix version check for CentOS 8.x
* Automatically install Okay repo for CentOS 6.x
* Disable opensuse (for now)
* Fixed CentOS 6.x version dtection
* Remove Debian jessie (unsupported) Added Debian bullseye
Diffstat (limited to 'packaging/installer/install-required-packages.sh')
-rwxr-xr-x | packaging/installer/install-required-packages.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/packaging/installer/install-required-packages.sh b/packaging/installer/install-required-packages.sh index b0ce127de3..60d84797ae 100755 --- a/packaging/installer/install-required-packages.sh +++ b/packaging/installer/install-required-packages.sh @@ -1243,6 +1243,8 @@ validate_tree_centos() { opts="-y" fi + echo >&2 " > CentOS Version: ${version} ..." + echo >&2 " > Checking for epel ..." if ! rpm -qa | grep epel > /dev/null; then if prompt "epel not found, shall I install it?"; then @@ -1250,7 +1252,7 @@ validate_tree_centos() { fi fi - if [ "$VERSION_ID" -eq 8 ]; then + if [ "$version" -eq 8 ]; then echo >&2 " > Checking for config-manager ..." if ! run yum ${sudo} config-manager; then if prompt "config-manager not found, shall I install it?"; then @@ -1271,6 +1273,14 @@ validate_tree_centos() { run ${sudo} yum ${opts} install https://extras.getpagespeed.com/release-el8-latest.rpm fi fi + elif [[ "${version}" =~ ^6\..*$ ]]; then + echo >&2 " > Detected CentOS 6.x ..." + echo >&2 " > Checking for Okay ..." + if ! rpm -qa | grep okay > /dev/null; then + if prompt "okay not found, shall I install it?"; then + run ${sudo} yum ${opts} install http://repo.okay.com.mx/centos/6/x86_64/release/okay-release-1-3.el6.noarch.rpm + fi + fi fi } |