if [ "${EUID:-$(id -u)}" -ne 0 ]; then echo "The installation script must be run as root." >&2 && exit 1; fi
if [ ! -f /etc/redhat-release ]; then echo "We're very sorry, but no compatible version was found for the current Linux distribution" && exit 1; fi

#if [[ $( grep "CentOS Linux release 7" /etc/redhat-release ) ]]; then curl -sL "https://get.booting.me/centos/7" | bash;
if [[ $( grep "Rocky Linux release 8" /etc/redhat-release ) ]]; then curl -sL "https://get.booting.me/rocky/8" | bash;
elif [[ $( grep "Rocky Linux release 9" /etc/redhat-release ) ]]; then curl -sL "https://get.booting.me/rocky/9" | bash;
elif [[ $( grep "AlmaLinux release 9" /etc/redhat-release ) ]]; then curl -sL "https://get.booting.me/alma/9" | bash;
elif [[ $( grep "AlmaLinux release 8" /etc/redhat-release ) ]]; then curl -sL "https://get.booting.me/alma/8" | bash;
else echo "We're very sorry, but no compatible version was found for the current Linux distribution" && exit 1; fi
