Merge pull request #1475 from Constacalm/patch-altlinux-name-checking

Update osdetection (ALT Linux)
This commit is contained in:
Michael Boelen 2024-05-14 08:13:13 +02:00 committed by GitHub
commit e8facbdf35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -160,6 +160,11 @@
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 '"')
;;
"altlinux")
LINUX_VERSION="ALT Linux"
OS_NAME="altlinux"
OS_VERSION=$(grep "^ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
;;
"amzn")
LINUX_VERSION="Amazon Linux"
OS_NAME="Amazon Linux"