diff options
author | Paul Emm. Katsoulakis <34388743+paulkatsoulakis@users.noreply.github.com> | 2019-08-09 17:48:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-09 17:48:47 +0300 |
commit | 485312630283bac22d568d8e5384242e52cd4bf9 (patch) | |
tree | 4c78e0f082e8884946ec9dcd082e65be2a07642e /tests | |
parent | bfb849f2808e8695408d5c4ce621644808ec3dc0 (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-x | tests/updater_checks.sh | 4 |
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 |