Update glances-install.sh
This commit is contained in:
@@ -11,8 +11,11 @@ Red='\033[10;31m'
|
|||||||
LRed='\033[1;31m'
|
LRed='\033[1;31m'
|
||||||
#echo -e "${Green}TEST${Color_Off}"
|
#echo -e "${Green}TEST${Color_Off}"
|
||||||
|
|
||||||
|
echo -e "${BOrange}Preparinfg to install Glances${Color_Off}"
|
||||||
|
echo ""
|
||||||
|
|
||||||
if hash glances 2>/dev/null; then
|
if hash glances 2>/dev/null; then
|
||||||
echo -e "${Green}Uninstalling previous Glances install and dependencies...{Color_Off}"
|
echo -e "${Green}Uninstalling previous Glances install and dependencies...${Color_Off}"
|
||||||
pip uninstall glances[action,batinfo,browser,cpuinfo,chart,docker,export,folders,gpu,ip,raid,snmp,web,wifi]
|
pip uninstall glances[action,batinfo,browser,cpuinfo,chart,docker,export,folders,gpu,ip,raid,snmp,web,wifi]
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -45,7 +48,7 @@ do_with_root() {
|
|||||||
echo "sudo $*"
|
echo "sudo $*"
|
||||||
sudo $*
|
sudo $*
|
||||||
else
|
else
|
||||||
echo "Please run this script as root."
|
echo -e "${BOrange}Please run this script as root.${Color_Off}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -62,8 +65,8 @@ else
|
|||||||
distrib_name=${BASH_REMATCH[1]}
|
distrib_name=${BASH_REMATCH[1]}
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
echo -e "Sorry, GlancesAutoInstall script is not compliant with your system."
|
echo -e "${BOrange}Sorry, GlancesAutoInstall script is not compliant with your system.${Color_Off}"
|
||||||
echo -e "Please read: https://github.com/nicolargo/glances#installation"
|
echo -e "${BOrange}Please read: https://github.com/nicolargo/glances#installation${Color_Off}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user