Fixes in scripts

This commit is contained in:
Antonio de la Rosa 2022-02-09 00:58:32 +01:00
parent cda8eb1232
commit 25d98341ac
3 changed files with 32 additions and 3 deletions

View file

@ -6,7 +6,24 @@ echo '{"error": 0, "status": 0, "progress": 0, "no_progress":0, "message": "Inst
sleep 1
sudo apt-get -y install python3 python3-pip
# Get distro version using lsb_release
DISTRO=`( lsb_release -ds || cat /etc/*release || uname -om ) 2>/dev/null | head -n1`
if [[ $DISTRO =~ ^Debian ]]; then
sudo apt-get -y install python3 python3-pip
elif [[ $DISTRO =~ ^NAME=\"Arch ]]; then
sudo pacman -S python python-pip
else
echo "Sorry, Linux distro not supported"
exit 1;
fi
if [ $? -eq 0 ]; then