From f011bcf90da2ed194fd69a35d9ab9602cfa4b71d Mon Sep 17 00:00:00 2001 From: Evgenij Date: Tue, 4 May 2021 16:50:23 +0300 Subject: [PATCH] RockyLinux support has been added RockyLinux support has been added for install-gui.sh --- install-gui.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/install-gui.sh b/install-gui.sh index cf28687cf128..f2d9bc512259 100644 --- a/install-gui.sh +++ b/install-gui.sh @@ -18,17 +18,23 @@ 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" ]; then + elif type yum && [ ! -f "/etc/redhat-release" ] && [ ! -f "/etc/centos-release" ] && [ ! -f /etc/rocky-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/redhat-release ] || [ -f /etc/centos-release ]; then + elif type yum && [ ! -f /etc/rocky-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 - fi + elif type yum && [ -f /etc/rocky-release ]; then + # RockyLinux + echo "Installing on RockyLinux" + dnf module enable nodejs:12 + sudo dnf install -y nodejs + fi + elif [ "$(uname)" = "Darwin" ] && type brew && ! npm version >/dev/null 2>&1; then # Install npm if not installed brew install npm