Update OS check

This commit is contained in:
hwdsl2 2023-06-15 00:11:56 -05:00
parent 96e081379a
commit 53c9a34b4b

View File

@ -37,6 +37,8 @@ check_os() {
os="centos"
os_version="7"
group_name="nobody"
elif grep -qs "Amazon Linux release 2023" /etc/system-release; then
exiterr "Amazon Linux 2023 is not supported."
elif [[ -e /etc/fedora-release ]]; then
os="fedora"
os_version=$(grep -oE '[0-9]+' /etc/fedora-release | head -1)