From 9ef8a4ae4fe9c9d59fc8af06a48e3670ccadcd6f Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 17 Jun 2023 18:22:23 -0400 Subject: [PATCH] Update unifi-install.sh Debian 12 compatible --- install/unifi-install.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install/unifi-install.sh b/install/unifi-install.sh index 11515d90..4ce0e417 100644 --- a/install/unifi-install.sh +++ b/install/unifi-install.sh @@ -20,12 +20,19 @@ $STD apt-get install -y mc $STD apt-get install -y apt-transport-https msg_ok "Installed Dependencies" +if [[ "$PCT_OSVERSION" == "12" ]]; then + echo -e "deb http://ftp.debian.org/debian bullseye main" >/etc/apt/sources.list.d/openjdk-11-jre-headless.list + $STD apt-get update +fi + msg_info "Installing OpenJDK" $STD apt-get install -y openjdk-11-jre-headless $STD apt-mark hold openjdk-11-* msg_ok "Installed OpenJDK" msg_info "Installing MongoDB" +wget -qL http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb +$STD dpkg -i libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb wget -qL https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/3.6/multiverse/binary-amd64/mongodb-org-server_3.6.23_amd64.deb $STD dpkg -i mongodb-org-server_3.6.23_amd64.deb msg_ok "Installed MongoDB" @@ -41,7 +48,7 @@ motd_ssh customize msg_info "Cleaning up" -rm -rf mongodb-org-server_3.6.23_amd64.deb +rm -rf mongodb-org-server_3.6.23_amd64.deb libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb $STD apt-get autoremove $STD apt-get autoclean msg_ok "Cleaned"