mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-02-13 16:53:27 +01:00
fix(tools.func): set GPG keyring files to 644 permissions
gpg --dearmor creates files with restrictive permissions (600), which prevents Debian 13's sqv signature verifier from reading the keyring files. This causes apt update to fail with 'Permission denied' errors for all repositories using custom GPG keys (adoptium, pgdg, pdm, etc.). Set chmod 644 after creating .gpg files in both setup_deb822_repo() and the MongoDB GPG key import in manage_tool_repository().
This commit is contained in:
@@ -465,6 +465,7 @@ manage_tool_repository() {
|
||||
msg_error "Failed to download MongoDB GPG key"
|
||||
return 1
|
||||
fi
|
||||
chmod 644 "/etc/apt/keyrings/mongodb-server-${version}.gpg"
|
||||
|
||||
# Setup repository
|
||||
local distro_codename
|
||||
@@ -1319,6 +1320,7 @@ setup_deb822_repo() {
|
||||
}
|
||||
fi
|
||||
rm -f "$tmp_gpg"
|
||||
chmod 644 "/etc/apt/keyrings/${name}.gpg"
|
||||
|
||||
# Write deb822
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user