Update install-glances.sh

This commit is contained in:
2020-04-19 11:53:08 -05:00
parent 02a3f488e8
commit 36e05c0f00

View File

@@ -50,7 +50,7 @@ do_with_root() {
if hash glances 2>/dev/null; then
echo -e "${Green}Uninstalling previous Glances install and dependencies...${Color_Off}"
do_with_root pip uninstall -y glances[action,batinfo,browser,cpuinfo,chart,docker,export,folders,gpu,ip,raid,snmp,web,wifi]
do_with_root pip3 uninstall -y glances[action,batinfo,browser,cpuinfo,chart,docker,export,folders,gpu,ip,raid,snmp,web,wifi]
fi
# Detect distribution name
@@ -89,7 +89,7 @@ if [[ $distrib_name == "ubuntu" || $distrib_name == "LinuxMint" || $distrib_name
do_with_root apt-get -y --force-yes update
# Install prerequirements
do_with_root apt-get install -y --force-yes python-pip python-dev gcc lm-sensors python-setuptools pkg-config
do_with_root apt-get install -y --force-yes python3-pip python3-dev gcc lm-sensors python3-setuptools pkg-config
if [[ " ${DEPS[@]} " =~ "wifi" ]]; then
do_with_root apt-get install -y --force-yes wireless-tools
@@ -101,7 +101,7 @@ elif [[ $distrib_name == "redhat" || $distrib_name == "centos" || $distrib_name
# Install prerequirements
do_with_root yum -y install epel-release
do_with_root yum -y install python-pip python-devel gcc lm_sensors python-setuptools
do_with_root yum -y install python3-pip python-devel gcc lm_sensors python3-setuptools
if [[ " ${DEPS[@]} " =~ "wifi" ]]; then
do_with_root yum -y install wireless-tools
@@ -111,7 +111,7 @@ elif [[ $distrib_name == "centminmod" ]]; then
# /CentOS min based
# Install prerequirements
do_with_root yum -y install python-devel gcc lm_sensors python-setuptools
do_with_root yum -y install python-devel gcc lm_sensors python3-setuptools
do_with_root wget -O- https://bootstrap.pypa.io/get-pip.py | python && $(which pip) install -U pip && ln -s $(which pip) /usr/bin/pip
if [[ " ${DEPS[@]} " =~ "wifi" ]]; then
@@ -122,7 +122,7 @@ elif [[ $distrib_name == "fedora" ]]; then
# Fedora
# Install prerequirements
do_with_root dnf -y install python-pip python-devel gcc lm_sensors python-setuptools
do_with_root dnf -y install python3-pip python-devel gcc lm_sensors python3-setuptools
if [[ " ${DEPS[@]} " =~ "wifi" ]]; then
do_with_root dnf -y install wireless-tools
@@ -132,7 +132,7 @@ elif [[ $distrib_name == "arch" ]]; then
# Arch support
# Headers not needed for Arch, shipped with regular python packages
do_with_root pacman -S python-pip lm_sensors python-setuptools --noconfirm
do_with_root pacman -S python3-pip lm_sensors python3-setuptools --noconfirm
if [[ " ${DEPS[@]} " =~ "wifi" ]]; then
do_with_root pacman -S wireless_tools --noconfirm