Update 'MySQL-ModInst.sh'

This commit is contained in:
Bram Prieshof
2020-09-30 13:42:01 +02:00
parent 6ebd297a23
commit aeca7bb466

View File

@@ -15,6 +15,7 @@ phpmyadminver="5.0.2"
SMI_config=no SMI_config=no
#Enforcing Legacy Mode #Enforcing Legacy Mode
APTMODE="apt"
OUTPUT='/dev/tty' OUTPUT='/dev/tty'
IMODE=l IMODE=l
@@ -37,8 +38,6 @@ elif [[ "${dist}" == *"ubuntu"* ]] && [[ "${dist_ver}" == *"20.04"* ]]; then
PKGM="$APTMODE" PKGM="$APTMODE"
PKGI="${PKGM} install -y --no-install-recommends" PKGI="${PKGM} install -y --no-install-recommends"
PKGLIST="apt.pkg.list" PKGLIST="apt.pkg.list"
echo "This os in not supported"
exit
shortdist=ubu2004 shortdist=ubu2004
elif [[ "${dist}" == *"debian"* ]] && [[ "${dist_ver}" == *"10"* ]]; then elif [[ "${dist}" == *"debian"* ]] && [[ "${dist_ver}" == *"10"* ]]; then
echo "Debian 10 Detected" echo "Debian 10 Detected"
@@ -46,19 +45,15 @@ elif [[ "${dist}" == *"debian"* ]] && [[ "${dist_ver}" == *"10"* ]]; then
PKGI="${PKGM} install -y --no-install-recommends" PKGI="${PKGM} install -y --no-install-recommends"
PKGLIST="apt.pkg.list" PKGLIST="apt.pkg.list"
shortdist=deb10 shortdist=deb10
echo "This os in not supported"
exit
elif [[ "${dist}" == *"centos"* ]] && [[ "${dist_ver}" == *"8"* ]]; then elif [[ "${dist}" == *"centos"* ]] && [[ "${dist_ver}" == *"8"* ]]; then
echo "Centos 8 Detected" echo "Centos 8 Detected"
PKGM="dnf" PKGM="dnf"
PKGI="${PKGM} install --setopt=install_weak_deps=False --best -y" PKGI="${PKGM} install --setopt=install_weak_deps=False --best -y"
PKGLIST="dnf.pkg.list" PKGLIST="dnf.pkg.list"
shortdist=cent8 shortdist=cent8
else
echo "This os in not supported" echo "This os in not supported"
exit exit
else
echo "This os in not supported"
exit
fi fi
unset dist_ver dist APTMODE unset dist_ver dist APTMODE
@@ -71,10 +66,6 @@ branch=master
###Select Module type ###Select Module type
mtype=""$repo"/raw/branch/"$branch"" mtype=""$repo"/raw/branch/"$branch""
#SelfBuilding Vars
PKGI="${PKGM} install -y"
##---------------## ##---------------##
# Functions # # Functions #