From ae046c778e397db8570de926b656dca42ad8d2f0 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Sun, 9 Jul 2023 00:40:53 +0200 Subject: [PATCH] support debian 12 (#5205) --- .pkgr.yml | 1 + contrib/install.sh | 8 +++++++- contrib/installer/src/root_command.sh | 8 +++++++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.pkgr.yml b/.pkgr.yml index ef91326b82..6ca6ae3a5e 100644 --- a/.pkgr.yml +++ b/.pkgr.yml @@ -35,3 +35,4 @@ dependencies: targets: ubuntu-20.04: true debian-11: true + debian-12: true diff --git a/contrib/install.sh b/contrib/install.sh index 241e2fe16d..4d90aa736d 100755 --- a/contrib/install.sh +++ b/contrib/install.sh @@ -74,7 +74,13 @@ root_command() { fi ;; "Debian GNU/Linux" | "debian gnu/linux" | Raspbian) - if [[ $VER != "11" ]]; then + if [[ $VER == "12" ]]; then + SUPPORTED=true + elif [[ $VER == "11" ]]; then + SUPPORTED=true + elif [[ $VER == "10" ]]; then + SUPPORTED=true + else SUPPORTED=false fi DIST_OS=debian diff --git a/contrib/installer/src/root_command.sh b/contrib/installer/src/root_command.sh index 8efd9e7b08..54c0c52ec3 100644 --- a/contrib/installer/src/root_command.sh +++ b/contrib/installer/src/root_command.sh @@ -64,7 +64,13 @@ case "$OS" in fi ;; "Debian GNU/Linux" | "debian gnu/linux" | Raspbian) - if [[ $VER != "11" ]]; then + if [[ $VER == "12" ]]; then + SUPPORTED=true + elif [[ $VER == "11" ]]; then + SUPPORTED=true + elif [[ $VER == "10" ]]; then + SUPPORTED=true + else SUPPORTED=false fi DIST_OS=debian