fix other OS installs

This commit is contained in:
Mike Reeves
2023-07-17 13:44:02 -04:00
parent abe0a9ec27
commit 38c7ea0801

View File

@@ -958,6 +958,7 @@ detect_os() {
is_centos=true is_centos=true
is_rpm=true is_rpm=true
not_supported=true not_supported=true
unset is_supported
elif grep -q "Red Hat Enterprise Linux release 9" /etc/redhat-release; then elif grep -q "Red Hat Enterprise Linux release 9" /etc/redhat-release; then
if [ -f /etc/oracle-release ]; then if [ -f /etc/oracle-release ]; then
OS=oracle OS=oracle
@@ -971,6 +972,7 @@ detect_os() {
is_rhel=true is_rhel=true
is_rpm=true is_rpm=true
not_supported=true not_supported=true
unset is_supported
fi fi
fi fi
elif [ -f /etc/os-release ]; then elif [ -f /etc/os-release ]; then
@@ -980,6 +982,7 @@ detect_os() {
OS=ubuntu OS=ubuntu
is_ubuntu=true is_ubuntu=true
not_supported=true not_supported=true
unset is_supported
elif grep -q "UBUNTU_CODENAME=jammy" /etc/os-release; then elif grep -q "UBUNTU_CODENAME=jammy" /etc/os-release; then
OSVER=jammy OSVER=jammy
UBVER=22.04 UBVER=22.04
@@ -987,6 +990,7 @@ detect_os() {
is_ubuntu=true is_ubuntu=true
is_deb=true is_deb=true
not_supported=true not_supported=true
unset is_supported
elif grep -q "VERSION_CODENAME=bookworm" /etc/os-release; then elif grep -q "VERSION_CODENAME=bookworm" /etc/os-release; then
OSVER=bookworm OSVER=bookworm
DEBVER=12 DEBVER=12
@@ -994,6 +998,7 @@ detect_os() {
OS=debian OS=debian
is_deb=true is_deb=true
not_supported=true not_supported=true
unset is_supported
fi fi
installer_prereq_packages installer_prereq_packages