Update unifi-install.sh
Debian 12 compatible
This commit is contained in:
parent
2101583d1a
commit
9ef8a4ae4f
1 changed files with 8 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue