Fixes in layout
This commit is contained in:
parent
4914a1f0e7
commit
3a665b3d81
4 changed files with 23 additions and 28 deletions
|
|
@ -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