add Debian 11 support

This commit is contained in:
ronivay
2021-08-23 13:40:12 +03:00
parent 2d7d197878
commit 36903f8f8c
2 changed files with 10 additions and 9 deletions

View File

@@ -39,6 +39,7 @@ Supported Linux distributions and versions:
- CentOS 8 - CentOS 8
- AlmaLinux 8 - AlmaLinux 8
- Rocky Linux 8 - Rocky Linux 8
- Debian 11
- Debian 10 - Debian 10
- Debian 9 - Debian 9
- Debian 8 - Debian 8
@@ -116,12 +117,12 @@ deb:
- libpng-dev - libpng-dev
- git - git
- python-minimal - python-minimal
- python2-minimal (Ubuntu 20 only, replaces python-minimal) - python2-minimal (Ubuntu 20/Debian 11 only, replaces python-minimal)
- libvhdi-utils - libvhdi-utils
- lvm2 - lvm2
- nfs-common - nfs-common
- cifs-utils - cifs-utils
- gnupg (debian 10) - gnupg (debian 10/11)
- software-properties-common (ubuntu) - software-properties-common (ubuntu)
``` ```

View File

@@ -232,8 +232,8 @@ function InstallDependenciesDeb {
runcmd "apt-get update" runcmd "apt-get update"
printok "Running apt-get update" printok "Running apt-get update"
#determine which python package is needed. Ubuntu 20 requires python2-minimal, 16 and 18 are python-minimal #determine which python package is needed. Ubuntu 20/Debian 11 require python2-minimal, others have python-minimal
if [[ "$OSNAME" == "Ubuntu" ]] && [[ "$OSVERSION" == "20" ]]; then if [[ "$OSNAME" =~ ^(Ubuntu|Debian)$ ]] && [[ "$OSVERSION" =~ ^(20|11)$ ]]; then
local PYTHON="python2-minimal" local PYTHON="python2-minimal"
else else
local PYTHON="python-minimal" local PYTHON="python-minimal"
@@ -251,11 +251,11 @@ function InstallDependenciesDeb {
runcmd "apt-get install -y apt-transport-https ca-certificates" runcmd "apt-get install -y apt-transport-https ca-certificates"
printok "Installing apt-transport-https and ca-certificates packages to support https repos" printok "Installing apt-transport-https and ca-certificates packages to support https repos"
if [[ "$OSNAME" == "Debian" ]] && [[ "$OSVERSION" == "10" ]]; then if [[ "$OSNAME" == "Debian" ]] && [[ "$OSVERSION" =~ ^(10|11)$ ]]; then
echo echo
printprog "Debian 10, so installing gnupg also" printprog "Debian 10/11, so installing gnupg also"
runcmd "apt-get install gnupg -y" runcmd "apt-get install gnupg -y"
printok "Debian 10, so installing gnupg also" printok "Debian 10/11, so installing gnupg also"
fi fi
# install setcap for non-root port binding if missing # install setcap for non-root port binding if missing
@@ -928,8 +928,8 @@ function CheckOS {
exit 1 exit 1
fi fi
if [[ "$OSNAME" == "Debian" ]] && [[ ! "$OSVERSION" =~ ^(8|9|10)$ ]]; then if [[ "$OSNAME" == "Debian" ]] && [[ ! "$OSVERSION" =~ ^(8|9|10|11)$ ]]; then
printfail "Only Debian 8/9/10 supported" printfail "Only Debian 8/9/10/11 supported"
exit 1 exit 1
fi fi