diff --git a/ct/alpine-komodo.sh b/ct/alpine-komodo.sh index 19d100a5e..50912fe06 100644 --- a/ct/alpine-komodo.sh +++ b/ct/alpine-komodo.sh @@ -32,6 +32,15 @@ function update_script() { exit 1 fi COMPOSE_BASENAME=$(basename "$COMPOSE_FILE") + + if [[ "$COMPOSE_BASENAME" == "sqlite.compose.yaml" || "$COMPOSE_BASENAME" == "postgres.compose.yaml" ]]; then + msg_error "❌ Detected outdated Komodo setup using SQLite or PostgreSQL (FerretDB v1)." + echo -e "${YW}This configuration is no longer supported since Komodo v1.18.0.${CL}" + echo -e "${YW}Please follow the migration guide:${CL}" + echo -e "${BGN}https://github.com/community-scripts/ProxmoxVE/discussions/5689${CL}\n" + exit 1 + fi + BACKUP_FILE="/opt/komodo/${COMPOSE_BASENAME}.bak_$(date +%Y%m%d_%H%M%S)" cp "$COMPOSE_FILE" "$BACKUP_FILE" || { msg_error "Failed to create backup of ${COMPOSE_BASENAME}!" diff --git a/ct/komodo.sh b/ct/komodo.sh index 6196e5b7d..5149c7fd3 100644 --- a/ct/komodo.sh +++ b/ct/komodo.sh @@ -36,6 +36,15 @@ function update_script() { exit 1 fi COMPOSE_BASENAME=$(basename "$COMPOSE_FILE") + + if [[ "$COMPOSE_BASENAME" == "sqlite.compose.yaml" || "$COMPOSE_BASENAME" == "postgres.compose.yaml" ]]; then + msg_error "❌ Detected outdated Komodo setup using SQLite or PostgreSQL (FerretDB v1)." + echo -e "${YW}This configuration is no longer supported since Komodo v1.18.0.${CL}" + echo -e "${YW}Please follow the migration guide:${CL}" + echo -e "${BGN}https://github.com/community-scripts/ProxmoxVE/discussions/5689${CL}\n" + exit 1 + fi + BACKUP_FILE="/opt/komodo/${COMPOSE_BASENAME}.bak_$(date +%Y%m%d_%H%M%S)" cp "$COMPOSE_FILE" "$BACKUP_FILE" || { msg_error "Failed to create backup of ${COMPOSE_BASENAME}!" diff --git a/install/alpine-komodo-install.sh b/install/alpine-komodo-install.sh index e87bf6876..fcf8f838f 100644 --- a/install/alpine-komodo-install.sh +++ b/install/alpine-komodo-install.sh @@ -28,8 +28,7 @@ msg_ok "Enabled Docker Service" echo "${TAB3}Choose the database for Komodo installation:" echo "${TAB3}1) MongoDB (recommended)" -echo "${TAB3}2) SQLite" -echo "${TAB3}3) PostgreSQL" +echo "${TAB3}2) FerretDB" read -rp "${TAB3}Enter your choice (default: 1): " DB_CHOICE DB_CHOICE=${DB_CHOICE:-1} @@ -38,10 +37,7 @@ case $DB_CHOICE in DB_COMPOSE_FILE="mongo.compose.yaml" ;; 2) - DB_COMPOSE_FILE="sqlite.compose.yaml" - ;; -3) - DB_COMPOSE_FILE="postgres.compose.yaml" + DB_COMPOSE_FILE="ferretdb.compose.yaml" ;; *) echo "Invalid choice. Defaulting to MongoDB." diff --git a/install/komodo-install.sh b/install/komodo-install.sh index 99771b97f..7717b281f 100644 --- a/install/komodo-install.sh +++ b/install/komodo-install.sh @@ -39,8 +39,7 @@ msg_ok "Installed Docker" echo "${TAB3}Choose the database for Komodo installation:" echo "${TAB3}1) MongoDB (recommended)" -echo "${TAB3}2) SQLite" -echo "${TAB3}3) PostgreSQL" +echo "${TAB3}2) FerretDB" read -rp "${TAB3}Enter your choice (default: 1): " DB_CHOICE DB_CHOICE=${DB_CHOICE:-1} @@ -49,10 +48,7 @@ case $DB_CHOICE in DB_COMPOSE_FILE="mongo.compose.yaml" ;; 2) - DB_COMPOSE_FILE="sqlite.compose.yaml" - ;; -3) - DB_COMPOSE_FILE="postgres.compose.yaml" + DB_COMPOSE_FILE="ferretdb.compose.yaml" ;; *) echo "Invalid choice. Defaulting to MongoDB."