summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPaul Emm. Katsoulakis <34388743+paulkatsoulakis@users.noreply.github.com>2019-08-09 17:48:47 +0300
committerGitHub <noreply@github.com>2019-08-09 17:48:47 +0300
commit485312630283bac22d568d8e5384242e52cd4bf9 (patch)
tree4c78e0f082e8884946ec9dcd082e65be2a07642e /tests
parentbfb849f2808e8695408d5c4ce621644808ec3dc0 (diff)
netdata/packaging: Bare OS validations (#6574)
* netdata/packaging: complete the list of bare OS validations, to be extra sure all cases are covered * netdata/packaging: centos 6 has a different release file * netdata/ci: [ci skip] no centos 8 yet * netdata/ci: [ci skip] dont run for Debian 7 - its dead * trigger travis * netdata/ci: remove Debian 8 as bats not available with the standard repos - we will revisit our strategy on how we execute tests anyway
Diffstat (limited to 'tests')
-rwxr-xr-xtests/updater_checks.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/updater_checks.sh b/tests/updater_checks.sh
index 9c8b6fa488..48c6ae0f2b 100755
--- a/tests/updater_checks.sh
+++ b/tests/updater_checks.sh
@@ -26,9 +26,11 @@ blind_arch_grep_install() {
blind_arch_grep_install || echo "Workaround failed, proceed as usual"
running_os="$(cat /etc/os-release |grep '^ID=' | cut -d'=' -f2 | sed -e 's/"//g')"
+# Special case for older centos
+[[ -f /etc/centos-release ]] && [[ -z "${running_os}" ]] && running_os="$(cat /etc/centos-release | grep "CentOS release 6" | cut -d' ' -f 1)"
case "${running_os}" in
-"centos"|"fedora")
+"centos"|"fedora"|"CentOS")
echo "Running on CentOS, updating YUM repository.."
yum clean all
yum update -y