Support Debian 12 "bookworm"

This commit is contained in:
Andrew Reid
2023-06-20 19:52:14 +09:30
parent eff60cc839
commit e12b34a996

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