mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-11 18:58:59 +03:00
Added support for Fedora in install-gui script (#5957)
* Support Fedora in install-gui script * Update install-gui.sh * Update install-gui.sh
This commit is contained in:
parent
de1a6c6463
commit
d6e6c704c7
@ -25,19 +25,19 @@ if [ "$(uname)" = "Linux" ]; then
|
|||||||
# Debian/Ubuntu
|
# Debian/Ubuntu
|
||||||
UBUNTU=true
|
UBUNTU=true
|
||||||
sudo apt-get install -y npm nodejs libxss1
|
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
|
# AMZN 2
|
||||||
echo "Installing on Amazon Linux 2."
|
echo "Installing on Amazon Linux 2."
|
||||||
curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -
|
curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -
|
||||||
sudo yum install -y nodejs
|
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
|
# CentOS or Redhat
|
||||||
echo "Installing on CentOS/Redhat."
|
echo "Installing on CentOS/Redhat."
|
||||||
curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -
|
curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -
|
||||||
sudo yum install -y nodejs
|
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
|
# RockyLinux
|
||||||
echo "Installing on RockyLinux"
|
echo "Installing on RockyLinux/Fedora"
|
||||||
dnf module enable nodejs:12
|
dnf module enable nodejs:12
|
||||||
sudo dnf install -y nodejs
|
sudo dnf install -y nodejs
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user