Enabled Debian 11 support, and updated vars
This commit is contained in:
@@ -7,9 +7,11 @@
|
|||||||
# Defining Vars #
|
# Defining Vars #
|
||||||
##-----------------##
|
##-----------------##
|
||||||
|
|
||||||
|
#ModuleConfig
|
||||||
|
email=mail@server.local
|
||||||
|
|
||||||
#SMI specific Vars
|
#SMI specific Vars
|
||||||
SMI_config=no
|
SMI_config=no
|
||||||
SMI_ModuleName=<ModuleName>
|
|
||||||
|
|
||||||
#Enforcing Legacy Mode
|
#Enforcing Legacy Mode
|
||||||
APTMODE="apt"
|
APTMODE="apt"
|
||||||
@@ -39,6 +41,12 @@ elif [[ "${dist}" == *"debian"* ]] && [[ "${dist_ver}" == *"10"* ]]; then
|
|||||||
PKGI="${PKGM} install -y --no-install-recommends"
|
PKGI="${PKGM} install -y --no-install-recommends"
|
||||||
PKGLIST="apt"
|
PKGLIST="apt"
|
||||||
shortdist=deb10
|
shortdist=deb10
|
||||||
|
elif [[ "${dist}" == *"debian"* ]] && [[ "${dist_ver}" == *"11"* ]]; then
|
||||||
|
echo "Debian 11 Detected"
|
||||||
|
PKGM="$APTMODE"
|
||||||
|
PKGI="${PKGM} install -y --no-install-recommends"
|
||||||
|
PKGLIST="apt"
|
||||||
|
shortdist=deb11
|
||||||
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user