From a3404102ced4df11cb037431b906a920bb4f1d70 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Mon, 2 Mar 2026 10:29:04 +0100 Subject: [PATCH] Update tools.func --- misc/tools.func | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/misc/tools.func b/misc/tools.func index 84f5e053b..e198cedc6 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -1732,6 +1732,13 @@ setup_deb822_repo() { rm -f "$tmp_gpg" return 1 } + else + # Already binary — copy directly + cp -f "$tmp_gpg" "/etc/apt/keyrings/${name}.gpg" || { + msg_error "Failed to install GPG key for ${name}" + rm -f "$tmp_gpg" + return 1 + } fi rm -f "$tmp_gpg" chmod 644 "/etc/apt/keyrings/${name}.gpg" @@ -6371,7 +6378,7 @@ EOF function setup_postgresql() { local PG_VERSION="${PG_VERSION:-16}" local PG_MODULES="${PG_MODULES:-}" - local USE_PGDG_REPO="${USE_PGDG_REPO:-false}" + local USE_PGDG_REPO="${USE_PGDG_REPO:-true}" local DISTRO_ID DISTRO_CODENAME DISTRO_ID=$(awk -F= '/^ID=/{print $2}' /etc/os-release | tr -d '"') DISTRO_CODENAME=$(awk -F= '/^VERSION_CODENAME=/{print $2}' /etc/os-release)