Skip to content

Commit e5f4d99

Browse files
thaJeztahManhIThmag
committed
install.sh: set read-permissions for environments with non-standard umask
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 <manhit@s-developers.com> Co-Authored-By: Hervé M <hmag@users.noreply.github.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent c6e4428 commit e5f4d99

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ do_install() {
401401
$sh_c 'apt-get update -qq >/dev/null'
402402
$sh_c "DEBIAN_FRONTEND=noninteractive apt-get install -y -qq $pre_reqs >/dev/null"
403403
$sh_c "curl -fsSL \"$DOWNLOAD_URL/linux/$lsb_dist/gpg\" | gpg --dearmor --yes -o /usr/share/keyrings/docker-archive-keyring.gpg"
404+
$sh_c "chmod a+r /usr/share/keyrings/docker-archive-keyring.gpg"
404405
$sh_c "echo \"$apt_repo\" > /etc/apt/sources.list.d/docker.list"
405406
$sh_c 'apt-get update -qq >/dev/null'
406407
)

0 commit comments

Comments
 (0)