Update glances-install.sh
This commit is contained in:
@@ -83,7 +83,7 @@ if [[ $distrib_name == "ubuntu" || $distrib_name == "LinuxMint" || $distrib_name
|
|||||||
do_with_root apt-get -y --force-yes update
|
do_with_root apt-get -y --force-yes update
|
||||||
|
|
||||||
# Install prerequirements
|
# Install prerequirements
|
||||||
do_with_root apt-get install -y --force-yes python-pip python-dev gcc lm-sensors
|
do_with_root apt-get install -y --force-yes python-pip python-dev gcc lm-sensors python-setuptools
|
||||||
|
|
||||||
if [[ " ${DEPS[@]} " =~ "wifi" ]]; then
|
if [[ " ${DEPS[@]} " =~ "wifi" ]]; then
|
||||||
do_with_root apt-get install -y --force-yes wireless-tools
|
do_with_root apt-get install -y --force-yes wireless-tools
|
||||||
@@ -94,7 +94,7 @@ elif [[ $distrib_name == "redhat" || $distrib_name == "centos" || $distrib_name
|
|||||||
# Redhat/CentOS/SL
|
# Redhat/CentOS/SL
|
||||||
|
|
||||||
# Install prerequirements
|
# Install prerequirements
|
||||||
do_with_root yum -y install python-pip python-devel gcc lm_sensors
|
do_with_root yum -y install python-pip python-devel gcc lm_sensors python-setuptools
|
||||||
|
|
||||||
if [[ " ${DEPS[@]} " =~ "wifi" ]]; then
|
if [[ " ${DEPS[@]} " =~ "wifi" ]]; then
|
||||||
do_with_root yum -y install wireless-tools
|
do_with_root yum -y install wireless-tools
|
||||||
@@ -104,7 +104,7 @@ elif [[ $distrib_name == "centminmod" ]]; then
|
|||||||
# /CentOS min based
|
# /CentOS min based
|
||||||
|
|
||||||
# Install prerequirements
|
# Install prerequirements
|
||||||
do_with_root yum -y install python-devel gcc lm_sensors
|
do_with_root yum -y install python-devel gcc lm_sensors python-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
|
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
|
if [[ " ${DEPS[@]} " =~ "wifi" ]]; then
|
||||||
@@ -115,7 +115,7 @@ elif [[ $distrib_name == "fedora" ]]; then
|
|||||||
# Fedora
|
# Fedora
|
||||||
|
|
||||||
# Install prerequirements
|
# Install prerequirements
|
||||||
do_with_root dnf -y install python-pip python-devel gcc lm_sensors
|
do_with_root dnf -y install python-pip python-devel gcc lm_sensors python-setuptools
|
||||||
|
|
||||||
if [[ " ${DEPS[@]} " =~ "wifi" ]]; then
|
if [[ " ${DEPS[@]} " =~ "wifi" ]]; then
|
||||||
do_with_root dnf -y install wireless-tools
|
do_with_root dnf -y install wireless-tools
|
||||||
@@ -125,7 +125,7 @@ elif [[ $distrib_name == "arch" ]]; then
|
|||||||
# Arch support
|
# Arch support
|
||||||
|
|
||||||
# Headers not needed for Arch, shipped with regular python packages
|
# Headers not needed for Arch, shipped with regular python packages
|
||||||
do_with_root pacman -S python-pip lm_sensors --noconfirm
|
do_with_root pacman -S python-pip lm_sensors python-setuptools --noconfirm
|
||||||
|
|
||||||
if [[ " ${DEPS[@]} " =~ "wifi" ]]; then
|
if [[ " ${DEPS[@]} " =~ "wifi" ]]; then
|
||||||
do_with_root pacman -S wireless_tools --noconfirm
|
do_with_root pacman -S wireless_tools --noconfirm
|
||||||
|
|||||||
Reference in New Issue
Block a user