From d6e6c704c7384d2d2e7c219ef19d1aef34b86e53 Mon Sep 17 00:00:00 2001 From: Kristian Feldsam Date: Fri, 9 Jul 2021 23:56:20 +0200 Subject: [PATCH] Added support for Fedora in install-gui script (#5957) * Support Fedora in install-gui script * Update install-gui.sh * Update install-gui.sh --- install-gui.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install-gui.sh b/install-gui.sh index ec70f2d5aae8..bd888f1571c6 100755 --- a/install-gui.sh +++ b/install-gui.sh @@ -25,19 +25,19 @@ if [ "$(uname)" = "Linux" ]; then # Debian/Ubuntu UBUNTU=true sudo apt-get install -y npm nodejs libxss1 - elif type yum && [ ! -f "/etc/redhat-release" ] && [ ! -f "/etc/centos-release" ] && [ ! -f /etc/rocky-release ]; then + elif type yum && [ ! -f "/etc/redhat-release" ] && [ ! -f "/etc/centos-release" ] && [ ! -f /etc/rocky-release ] && [ ! -f /etc/fedora-release ]; then # AMZN 2 echo "Installing on Amazon Linux 2." curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash - sudo yum install -y nodejs - elif type yum && [ ! -f /etc/rocky-release ] && [ -f /etc/redhat-release ] || [ -f /etc/centos-release ]; then + elif type yum && [ ! -f /etc/rocky-release ] && [ ! -f /etc/fedora-release ] && [ -f /etc/redhat-release ] || [ -f /etc/centos-release ]; then # CentOS or Redhat echo "Installing on CentOS/Redhat." curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash - sudo yum install -y nodejs - elif type yum && [ -f /etc/rocky-release ]; then + elif type yum && [ -f /etc/rocky-release ] || [ -f /etc/fedora-release ]; then # RockyLinux - echo "Installing on RockyLinux" + echo "Installing on RockyLinux/Fedora" dnf module enable nodejs:12 sudo dnf install -y nodejs fi