Skip to content

Commit

Permalink
support fedora in kernel header install script
Browse files Browse the repository at this point in the history
  • Loading branch information
tsloughter committed Apr 15, 2024
1 parent d744110 commit 1c0a6e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion collector/kernel/kernel_headers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function detect_distro {
if [[ -e "${os_release_file}" ]]; then
os_id="$(grep '^ID=' "${os_release_file}" 2> /dev/null | sed -e 's/ID=\(.*\)/\1/g' -e 's/"//g')"
case "${os_id}" in
debian | ubuntu | centos | amazon | rhel)
debian | ubuntu | centos | amazon | rhel | fedora)
echo "${os_id}"
return
;;
Expand All @@ -82,6 +82,9 @@ function detect_distro {
elif grep 'Amazon Linux' "${system_release_file}" > /dev/null 2> /dev/null; then
echo "amazon"
return
elif grep 'Fedora' "${system_release_file}" > /dev/null 2> /dev/null; then
echo "amazon"
return
fi
fi

Expand Down

0 comments on commit 1c0a6e3

Please sign in to comment.