From b24ec835a27485e1bc2f14df844a7061f6ca0c77 Mon Sep 17 00:00:00 2001 From: thorstenspille Date: Sun, 9 Jun 2024 12:45:59 +0200 Subject: [PATCH] update unifi debian 12 mongodb 7 --- src/unifi/constants-service.conf | 4 +--- src/unifi/install-service.sh | 10 +++++----- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/unifi/constants-service.conf b/src/unifi/constants-service.conf index d9ef60e..09898b2 100644 --- a/src/unifi/constants-service.conf +++ b/src/unifi/constants-service.conf @@ -8,9 +8,7 @@ # This file contains the project constants on service level # Debian Version, which will be installed -LXC_TEMPLATE_VERSION="debian-11-standard" -# !!!! Leave at debian 11, currently unifi depends on mongodb-server <= 4.4 and libssl1.1 -# libssl1.1 is unsupported on debian bookworm +LXC_TEMPLATE_VERSION="debian-12-standard" # Create sharefs mountpoint LXC_MP=0 diff --git a/src/unifi/install-service.sh b/src/unifi/install-service.sh index be830d6..4c005f8 100644 --- a/src/unifi/install-service.sh +++ b/src/unifi/install-service.sh @@ -11,12 +11,12 @@ source /root/functions.sh source /root/zamba.conf source /root/constants-service.conf -wget -O /etc/apt/trusted.gpg.d/mongodb-4.4.asc https://pgp.mongodb.com/server-4.4.asc -wget -O /etc/apt/trusted.gpg.d/unifi.gpg https://dl.ubnt.com/unifi/unifi-repo.gpg +wget -O - https://www.mongodb.org/static/pgp/server-7.0.asc | gpg --dearmor > /usr/share/keyrings/mongodb7.gpg +wget -O - https://dl.ubnt.com/unifi/unifi-repo.gpg | gpg --dearmor > /usr/share/keyrings/unifi.gpg -echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" > /etc/apt/sources.list.d/mongodb.list -echo "deb http://www.ui.com/downloads/unifi/debian stable ubiquiti" > /etc/apt/sources.list.d/unifi.list +echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list +echo "deb [ signed-by=/usr/share/keyrings/unifi.gpg ] http://www.ui.com/downloads/unifi/debian stable ubiquiti" > /etc/apt/sources.list.d/unifi.list apt update -DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -qq unifi \ No newline at end of file +DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -qq default-jre-headless mongodb-server unifi \ No newline at end of file