Skip to content

Commit

Permalink
Merge pull request #189 from andrewreid/debian-12
Browse files Browse the repository at this point in the history
Support Debian 12 "bookworm"
  • Loading branch information
ronivay authored Jun 26, 2023
2 parents eff60cc + 9a60fbb commit dd2ea64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions xo-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit dd2ea64

Please sign in to comment.