0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-15 01:58:34 +00:00

packaging: fix errors during install-requred-packages ()

* packaging: update install-requred-packages.sh: add `manjaro` to the list of known OSes of get_os_release func and sort the list alphabetically

* packaging: fix `validate_package_trees` func exists before executing it
This commit is contained in:
Ilya Mashchenko 2020-04-06 15:45:08 +03:00 committed by GitHub
parent fe2273567a
commit 582d98780d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -192,7 +192,7 @@ get_os_release() {
eval "$(grep -E "^(NAME|ID|ID_LIKE|VERSION|VERSION_ID)=" "${os_release_file}")"
for x in "${ID}" ${ID_LIKE}; do
case "${x,,}" in
alpine | arch | centos | debian | fedora | gentoo | sabayon | rhel | ubuntu | suse | opensuse-leap | sles | clear-linux-os)
alpine | arch | centos | clear-linux-os | debian | fedora | gentoo | manjaro | opensuse-leap | rhel | sabayon | sles | suse | ubuntu)
distribution="${x}"
version="${VERSION_ID}"
codename="${VERSION}"
@ -1047,7 +1047,9 @@ declare -A pkg_zip=(
)
validate_package_trees() {
validate_tree_${tree}
if type -t validate_tree_${tree} > /dev/null; then
validate_tree_${tree}
fi
}
validate_installed_package() {