Update unifi-install.sh

Debian 12 compatible
This commit is contained in:
tteckster 2023-06-17 18:22:23 -04:00 committed by GitHub
parent 2101583d1a
commit 9ef8a4ae4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,12 +20,19 @@ $STD apt-get install -y mc
$STD apt-get install -y apt-transport-https $STD apt-get install -y apt-transport-https
msg_ok "Installed Dependencies" 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" msg_info "Installing OpenJDK"
$STD apt-get install -y openjdk-11-jre-headless $STD apt-get install -y openjdk-11-jre-headless
$STD apt-mark hold openjdk-11-* $STD apt-mark hold openjdk-11-*
msg_ok "Installed OpenJDK" msg_ok "Installed OpenJDK"
msg_info "Installing MongoDB" 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 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 $STD dpkg -i mongodb-org-server_3.6.23_amd64.deb
msg_ok "Installed MongoDB" msg_ok "Installed MongoDB"
@ -41,7 +48,7 @@ motd_ssh
customize customize
msg_info "Cleaning up" 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 autoremove
$STD apt-get autoclean $STD apt-get autoclean
msg_ok "Cleaned" msg_ok "Cleaned"