Skip to content

Commit

Permalink
RockyLinux support has been added
Browse files Browse the repository at this point in the history
RockyLinux support has been added for install-gui.sh
  • Loading branch information
proea authored and hoffmang9 committed May 10, 2021
1 parent bac1b8d commit f011bcf
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions install-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f011bcf

Please sign in to comment.