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