Issue with Install Script on RHEL 9 | FWCloud Forum

Issue with Install Script on RHEL 9

Jeremy M

New member
The install script (https://raw.githubusercontent.com/soltecsis/fwcloud-installer/main/fwcloud-installer.sh) doesn't properly detect RHEL 9 servers. When you run it, you receive the error:

Your Linux distribution () is not supported.

The problem is caused by the hostnamectl detection of the Operating System line in the script. You're grepping for that term with two spaces before it, but on RHEL 9, it's the start of the line.

Specifically, this doesn't work:

OS=`hostnamectl | grep "^ Operating System: " | awk -F": " '{print $2}'`

Instead it should be:

OS=`hostnamectl | grep "^ *Operating System: " | awk -F": " '{print $2}'`

To support any number of spaces at the beginning of the line.

RHEL 7 reports: Operating System: Red Hat Enterprise Linux Server 7.9 (Maipo)
RHEL 8 reports: Operating System: Red Hat Enterprise Linux 8.7 (Ootpa)
RHEL 9 reports: Operating System: Red Hat Enterprise Linux 9.1 (Plow)

Other than that, FWCloud installed just fine on RHEL 9 and looks to be working great.

Thanks,

Jeremy
 

Carles Munyoz

Administrator
Staff member
Hi Jeremy,
We have already fixed the bug and published the new version of FWCloud-Installer.

If you need any help with FWCloud, please don't hesitate in contacting us again.

Thank you very much for the report.
 
Top