Added detection of Rocky Linux to include/osdetection

This commit is contained in:
Fred 2021-05-11 10:15:23 -04:00
parent 33ff247d67
commit e1d49ff007
1 changed files with 6 additions and 0 deletions

View File

@ -360,6 +360,12 @@
OS_NAME="Zorin OS"
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
OS_VERSION_FULL=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
;;
"rocky")
LINUX_VERSION="Rocky Linux"
OS_NAME="Rocky Linux"
OS_REDHAT_OR_CLONE=1
OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
;;
*)
ReportException "OS Detection" "Unknown OS found in /etc/os-release - Please create an issue on GitHub and share the the contents (cat /etc/os-release): ${PROGRAM_SOURCE}"