From e5f4d99c754ad5da3fc6e060f989bb508b26ebbd Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 21 Mar 2022 15:56:26 +0100 Subject: [PATCH] install.sh: set read-permissions for environments with non-standard umask MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some environments may have a non-standard (non 022) umask set, in which case the keyring would not get read-permissions for all users, which lead to errors during install: W: GPG error: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8 This commit changes the permissions of the file, so that it's world-readable. See https://stackoverflow.com/a/68764068 Co-Authored-By: ManhIT Co-Authored-By: Hervé M Signed-off-by: Sebastiaan van Stijn --- install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install.sh b/install.sh index 934bb29e..81a0be42 100755 --- a/install.sh +++ b/install.sh @@ -401,6 +401,7 @@ do_install() { $sh_c 'apt-get update -qq >/dev/null' $sh_c "DEBIAN_FRONTEND=noninteractive apt-get install -y -qq $pre_reqs >/dev/null" $sh_c "curl -fsSL \"$DOWNLOAD_URL/linux/$lsb_dist/gpg\" | gpg --dearmor --yes -o /usr/share/keyrings/docker-archive-keyring.gpg" + $sh_c "chmod a+r /usr/share/keyrings/docker-archive-keyring.gpg" $sh_c "echo \"$apt_repo\" > /etc/apt/sources.list.d/docker.list" $sh_c 'apt-get update -qq >/dev/null' )