Fixes in layout
This commit is contained in:
parent
4914a1f0e7
commit
3a665b3d81
4 changed files with 23 additions and 28 deletions
|
|
@ -17,7 +17,7 @@ if linux_distro=='arch':
|
|||
if call("sudo pacman -S --noconfirm git", shell=True) > 0:
|
||||
print('Error, cannot install git...')
|
||||
exit(1)
|
||||
elif linux_distro=='debian':
|
||||
elif linux_distro=='debian' or linux_distro=='ubuntu':
|
||||
|
||||
if call('sudo DEBIAN_FRONTEND="noninteractive" apt-get install -y git', shell=True) > 0:
|
||||
print('Error, cannot install git...')
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ sleep 1
|
|||
|
||||
DISTRO=`( lsb_release -ds || cat /etc/*release || uname -om ) 2>/dev/null | head -n1`
|
||||
|
||||
if [[ $DISTRO =~ ^Debian ]]; then
|
||||
if [[ $DISTRO =~ ^Debian ]] || [[ $DISTRO =~ ^Ubuntu ]]; then
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get -y install python3 python3-pip
|
||||
|
|
@ -19,7 +19,7 @@ elif [[ $DISTRO =~ ^NAME=\"Arch ]]; then
|
|||
|
||||
sudo pacman -Syu --noconfirm python python-pip
|
||||
|
||||
elif [[ $DISTRO =~ ^NAME=\"Rocky ]]; then
|
||||
elif [[ $DISTRO =~ ^NAME=\"Rocky ]]; then
|
||||
|
||||
sudo dnf install -y python python-pip
|
||||
#Install EPEL
|
||||
|
|
@ -29,6 +29,12 @@ elif [[ $DISTRO =~ ^NAME=\"Rocky ]]; then
|
|||
|
||||
sudo dnf upgrade -y
|
||||
|
||||
elif [[ $DISTRO =~ ^Fedora ]]; then
|
||||
|
||||
sudo dnf upgrade -y
|
||||
|
||||
sudo dnf install -y python3 python3-pip
|
||||
|
||||
else
|
||||
|
||||
echo "Sorry, Linux distro not supported"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue