mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-10-24 08:33:38 +00:00
Added support for Oracle Linux 9
This commit is contained in:
@@ -234,6 +234,10 @@ detect_os() {
|
|||||||
"rocky"|"almalinux")
|
"rocky"|"almalinux")
|
||||||
OS_TYPE="rhel"
|
OS_TYPE="rhel"
|
||||||
;;
|
;;
|
||||||
|
"ol")
|
||||||
|
# Keep Oracle Linux as 'ol' for proper frontend identification
|
||||||
|
OS_TYPE="ol"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
elif [[ -f /etc/redhat-release ]]; then
|
elif [[ -f /etc/redhat-release ]]; then
|
||||||
@@ -261,7 +265,7 @@ get_repository_info() {
|
|||||||
"ubuntu"|"debian")
|
"ubuntu"|"debian")
|
||||||
get_apt_repositories repos_json first
|
get_apt_repositories repos_json first
|
||||||
;;
|
;;
|
||||||
"centos"|"rhel"|"fedora")
|
"centos"|"rhel"|"fedora"|"ol")
|
||||||
get_yum_repositories repos_json first
|
get_yum_repositories repos_json first
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@@ -588,11 +592,11 @@ get_package_info() {
|
|||||||
"ubuntu"|"debian")
|
"ubuntu"|"debian")
|
||||||
get_apt_packages packages_json first
|
get_apt_packages packages_json first
|
||||||
;;
|
;;
|
||||||
"centos"|"rhel"|"fedora")
|
"centos"|"rhel"|"fedora"|"ol")
|
||||||
get_yum_packages packages_json first
|
get_yum_packages packages_json first
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
error "Unsupported OS type: $OS_TYPE"
|
warning "Unsupported OS type: $OS_TYPE - returning empty package list"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
@@ -29,12 +29,11 @@ export const getOSIcon = (osType) => {
|
|||||||
os.includes("rhel") ||
|
os.includes("rhel") ||
|
||||||
os.includes("red hat") ||
|
os.includes("red hat") ||
|
||||||
os.includes("almalinux") ||
|
os.includes("almalinux") ||
|
||||||
os.includes("rocky") ||
|
os.includes("rocky")
|
||||||
os === "ol" ||
|
|
||||||
os.includes("oraclelinux") ||
|
|
||||||
os.includes("oracle linux")
|
|
||||||
)
|
)
|
||||||
return SiCentos;
|
return SiCentos;
|
||||||
|
if (os === "ol" || os.includes("oraclelinux") || os.includes("oracle linux"))
|
||||||
|
return SiLinux; // Use generic Linux icon for Oracle Linux
|
||||||
if (os.includes("fedora")) return SiFedora;
|
if (os.includes("fedora")) return SiFedora;
|
||||||
if (os.includes("arch")) return SiArchlinux;
|
if (os.includes("arch")) return SiArchlinux;
|
||||||
if (os.includes("alpine")) return SiAlpinelinux;
|
if (os.includes("alpine")) return SiAlpinelinux;
|
||||||
|
|||||||
Reference in New Issue
Block a user