mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-30 14:05:59 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a8956d5fc4 | |||
| c85d9d5830 | |||
| a2daf7347f | |||
| 564aaf5a9c |
@@ -454,6 +454,12 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
- Neko ([#14121](https://github.com/community-scripts/ProxmoxVE/pull/14121))
|
||||
|
||||
### 💾 Core
|
||||
|
||||
- #### 🔧 Refactor
|
||||
|
||||
- tools.func: Manage minor versions for MongoDB 8.x [@tremor021](https://github.com/tremor021) ([#14131](https://github.com/community-scripts/ProxmoxVE/pull/14131))
|
||||
|
||||
## 2026-04-29
|
||||
|
||||
### 🚀 Updated Scripts
|
||||
|
||||
@@ -14,7 +14,7 @@ network_check
|
||||
update_os
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
$STD apk add tzdata
|
||||
$STD apk add tzdata openssl
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
msg_info "Installing Docker"
|
||||
|
||||
+6
-3
@@ -5964,14 +5964,14 @@ function setup_mariadb_db() {
|
||||
}
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Installs or updates MongoDB to specified major version.
|
||||
# Installs or updates MongoDB to specified version.
|
||||
#
|
||||
# Description:
|
||||
# - Preserves data across installations
|
||||
# - Adds official MongoDB repo
|
||||
#
|
||||
# Variables:
|
||||
# MONGO_VERSION - MongoDB major version to install (e.g. 7.0, 8.0)
|
||||
# MONGO_VERSION - MongoDB version to install (e.g. 7.0, 8.2)
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
function setup_mongodb() {
|
||||
@@ -6044,8 +6044,11 @@ function setup_mongodb() {
|
||||
}
|
||||
|
||||
# Setup repository
|
||||
# MongoDB 8.x versions beyond 8.0 reuse the server-8.0.asc PGP key
|
||||
local MONGO_KEY_VERSION="${MONGO_VERSION}"
|
||||
[[ "${MONGO_VERSION}" == 8.[1-9]* ]] && MONGO_KEY_VERSION="8.0"
|
||||
manage_tool_repository "mongodb" "$MONGO_VERSION" "$MONGO_BASE_URL" \
|
||||
"https://www.mongodb.org/static/pgp/server-${MONGO_VERSION}.asc" || {
|
||||
"https://www.mongodb.org/static/pgp/server-${MONGO_KEY_VERSION}.asc" || {
|
||||
msg_error "Failed to setup MongoDB repository"
|
||||
return 100
|
||||
}
|
||||
|
||||
@@ -151,6 +151,23 @@ function check_proxmox_host() {
|
||||
# ==============================================================================
|
||||
# CHECK / INSTALL DOCKER
|
||||
# ==============================================================================
|
||||
function ensure_openssl() {
|
||||
if command -v openssl &>/dev/null; then
|
||||
return
|
||||
fi
|
||||
msg_info "Installing openssl"
|
||||
if [[ -f /etc/alpine-release ]]; then
|
||||
$STD apk add openssl
|
||||
elif command -v apt-get &>/dev/null; then
|
||||
$STD apt-get update
|
||||
$STD apt-get install -y openssl
|
||||
else
|
||||
msg_error "openssl is required but could not be installed automatically."
|
||||
exit 10
|
||||
fi
|
||||
msg_ok "Installed openssl"
|
||||
}
|
||||
|
||||
function check_or_install_docker() {
|
||||
if command -v docker &>/dev/null; then
|
||||
msg_ok "Docker $(docker --version | cut -d' ' -f3 | tr -d ',') is available"
|
||||
@@ -160,6 +177,7 @@ function check_or_install_docker() {
|
||||
msg_error "Docker Compose plugin is not available. Please install it."
|
||||
exit 10
|
||||
fi
|
||||
ensure_openssl
|
||||
return
|
||||
fi
|
||||
|
||||
@@ -183,6 +201,8 @@ function check_or_install_docker() {
|
||||
$STD sh <(curl -fsSL https://get.docker.com)
|
||||
fi
|
||||
msg_ok "Installed Docker"
|
||||
|
||||
ensure_openssl
|
||||
}
|
||||
|
||||
# ==============================================================================
|
||||
|
||||
Reference in New Issue
Block a user