OpenNebula / minione

Easy to use deployment tool for an OpenNebula evaluation environment
Apache License 2.0
180 stars 54 forks source link

M #-: Fix detecting RedHat #113

Closed xorel closed 11 months ago

mkutouski commented 11 months ago

Should that script be capable to install miniONE on RHEL OS apart from detecting RHEL ? Because with that fix the script failed on RHEL 9.2.:

$ cat /etc/redhat-release 
Red Hat Enterprise Linux release 9.2 (Plow)

$ git clone https://github.com/OpenNebula/minione.git

$ bash /root/minione/minione
Checks & detection
Checking distribution and version [RedHat 9 6.6]  FAILED

As far as I understand the RedHat8 and RedHat9 need to be listed in SUPPORT_MAP. But even after that the script fails on checking OpenNebula URL with the error message as below:

$ bash /root/minione/minione -v

### Checks & detection
Checking distribution and version [RedHat 9 6.6]  OK
Checking if OpenNebula repository exists  retry 1 retry 2 retry 3 FAILED

--- STDERR ---
Currently only CentOS, AlmaLinux, Ubuntu or Debian are supported
--------------

Since RedHat and AlmaLinux are binary compatible may be one of the possible solution can be just set

[[ "${DIST}" = Red ]] && DIST="AlmaLinux"

with some workaround for EPEL repository?