Merge pull request #189 from andrewreid/debian-12

Support Debian 12 "bookworm"
This commit is contained in:
Roni Väyrynen
2023-06-26 13:34:36 +03:00
committed by GitHub
2 changed files with 6 additions and 5 deletions

View File

@@ -42,6 +42,7 @@ Supported Linux distributions and versions:
- AlmaLinux 8
- Rocky Linux 9
- Rocky Linux 8
- Debian 12
- Debian 11
- Debian 10
- Ubuntu 22.04

View File

@@ -300,11 +300,11 @@ function InstallDependenciesDeb {
runcmd "apt-get install -y apt-transport-https ca-certificates"
printok "Installing apt-transport-https and ca-certificates packages to support https repos"
if [[ "$OSNAME" == "Debian" ]] && [[ "$OSVERSION" =~ ^(10|11)$ ]]; then
if [[ "$OSNAME" == "Debian" ]] && [[ "$OSVERSION" =~ ^(10|11|12)$ ]]; then
echo
printprog "Debian 10/11, so installing gnupg also"
printprog "Debian 10/11/12, so installing gnupg also"
runcmd "apt-get install gnupg -y"
printok "Debian 10/11, so installing gnupg also"
printok "Debian 10/11/12, so installing gnupg also"
fi
# install setcap for non-root port binding if missing
@@ -1293,8 +1293,8 @@ function CheckOS {
exit 1
fi
if [[ "$OSNAME" == "Debian" ]] && [[ ! "$OSVERSION" =~ ^(10|11)$ ]]; then
printfail "Only Debian 10/11 supported"
if [[ "$OSNAME" == "Debian" ]] && [[ ! "$OSVERSION" =~ ^(10|11|12)$ ]]; then
printfail "Only Debian 10/11/12 supported"
exit 1
fi