mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-03 18:35:55 +00:00
Update tools.func
This commit is contained in:
@@ -1732,6 +1732,13 @@ setup_deb822_repo() {
|
|||||||
rm -f "$tmp_gpg"
|
rm -f "$tmp_gpg"
|
||||||
return 1
|
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
|
fi
|
||||||
rm -f "$tmp_gpg"
|
rm -f "$tmp_gpg"
|
||||||
chmod 644 "/etc/apt/keyrings/${name}.gpg"
|
chmod 644 "/etc/apt/keyrings/${name}.gpg"
|
||||||
@@ -6371,7 +6378,7 @@ EOF
|
|||||||
function setup_postgresql() {
|
function setup_postgresql() {
|
||||||
local PG_VERSION="${PG_VERSION:-16}"
|
local PG_VERSION="${PG_VERSION:-16}"
|
||||||
local PG_MODULES="${PG_MODULES:-}"
|
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
|
local DISTRO_ID DISTRO_CODENAME
|
||||||
DISTRO_ID=$(awk -F= '/^ID=/{print $2}' /etc/os-release | tr -d '"')
|
DISTRO_ID=$(awk -F= '/^ID=/{print $2}' /etc/os-release | tr -d '"')
|
||||||
DISTRO_CODENAME=$(awk -F= '/^VERSION_CODENAME=/{print $2}' /etc/os-release)
|
DISTRO_CODENAME=$(awk -F= '/^VERSION_CODENAME=/{print $2}' /etc/os-release)
|
||||||
|
|||||||
Reference in New Issue
Block a user