From aea08ee1ce0734d33b626c30a3d9dd28de7db1da Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 20 Oct 2025 11:16:14 +0200 Subject: [PATCH] fix ssl issue psql 17 --- install/dispatcharr-install.sh | 2 +- misc/tools.func | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/install/dispatcharr-install.sh b/install/dispatcharr-install.sh index 7b2b84f8..507300fb 100644 --- a/install/dispatcharr-install.sh +++ b/install/dispatcharr-install.sh @@ -27,7 +27,7 @@ msg_ok "Installed Dependencies" setup_uv NODE_VERSION="22" setup_nodejs -PG_VERSION="17" setup_postgresql +PG_VERSION="16" setup_postgresql msg_info "Creating PostgreSQL Database" DB_NAME=dispatcharr_db diff --git a/misc/tools.func b/misc/tools.func index 70d5a79c..13860ec3 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -2727,6 +2727,11 @@ function setup_postgresql() { # Try multiple PostgreSQL package patterns local pg_install_success=false + # First, ensure ssl-cert is available (PostgreSQL dependency) + if apt-cache search "^ssl-cert$" 2>/dev/null | grep -q .; then + $STD apt install -y ssl-cert 2>/dev/null || true + fi + # First try: postgresql-X (common in most repos) if apt-cache search "^postgresql-${PG_VERSION}$" 2>/dev/null | grep -q . && $STD apt install -y "postgresql-${PG_VERSION}" "postgresql-client-${PG_VERSION}" 2>/dev/null; then pg_install_success=true