1
0
Fork 0

linux-setup.sh: improve detection of RHEL-based OSes

This commit is contained in:
Pratham Patel 2024-01-08 10:44:39 +05:30
parent 54359f35f7
commit f12101da53
Signed by: thefossguy
SSH Key Fingerprint: SHA256:/B3wAg7jnMEBQ2JwkebbS/eXVZANDmqRfnd9QkIhxMI
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ elif grep "ID=fedora" /etc/os-release > /dev/null; then
install_pkgs_fedora
common_setup
}
elif grep "ID=alma\|ID=centos\|ID=rhel\|ID=rocky" /etc/os-release > /dev/null; then
elif grep "ID_LIKE=*.rhel*." /etc/os-release > /dev/null; then
RHEL_VERSION="$(grep VERSION_ID /etc/os-release | awk -F"=" '{print $2}')"
function linux_setup() {
enable_ssh_daemon_fedora