From 4184495e40f8f5eb6b2368de7bd160839b95cda1 Mon Sep 17 00:00:00 2001 From: Andriy Utkin Date: Tue, 11 Jun 2024 00:09:09 +0100 Subject: [PATCH] installer: support Debian 12 --- installer/v3.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/installer/v3.sh b/installer/v3.sh index 1611c1bf..d5fa4a39 100644 --- a/installer/v3.sh +++ b/installer/v3.sh @@ -138,6 +138,12 @@ bullseye_install() apt-get -y install mariadb-server bluecherry } +# Debian 12 +bookworm_install() +{ + bullseye_install +} + check_distro() { if [[ -e /etc/lsb-release ]] @@ -174,7 +180,8 @@ elif [[ "$ID" == "ubuntu" && "$VERSION_ID" == "22.04" && "$VERSION_CODENAME" == elif [[ "$ID" == "ubuntu" && "$VERSION_ID" == "24.04" && "$VERSION_CODENAME" == "noble" ]]; then noble_install; elif [[ "$ID" == "debian" && "$VERSION_ID" == "10" && "$VERSION_CODENAME" == "buster" ]]; then buster_install; elif [[ "$ID" == "debian" && "$VERSION_ID" == "11" && "$VERSION_CODENAME" == "bullseye" ]]; then bullseye_install; +elif [[ "$ID" == "debian" && "$VERSION_ID" == "12" && "$VERSION_CODENAME" == "bookworm" ]]; then bookworm_install; elif [[ "$ID" == "mint" && "$VERSION_ID" == "21.1" && "$VERSION_CODENAME" == "vera" ]]; then jammy_install; # Mint 21.1 Vera, based on Ubuntu 22.04 Jammy else - echo "Currently we only support Ubuntu 18.04 (Bionic), Ubuntu 20.04 (Focal), Ubuntu 22.04 (Jammy), Ubuntu 24.04 (Noble) and Debian 10 (Buster), Linux Mint 21.1 (Vera) for unstable testing" + echo "Currently we only support Ubuntu 18.04 (Bionic), Ubuntu 20.04 (Focal), Ubuntu 22.04 (Jammy), Ubuntu 24.04 (Noble) and Debian 10 (Buster), 11 (Bullseye), 12 (Bookworm), Linux Mint 21.1 (Vera) for unstable testing" fi