Browse Source

Fix permissions of keyring.gpg in D20releaserepo.

In pbuilder-hookdir/B20autopkgtest after keyring.gpg is copied to
/etc/apt/trusted.gpg.d/keyring.gpg it's only readable by root. Because stretch
uses the system user "_apt" to read this files this breaks installing packages
out of a custom repository.

This commit fix this issue by simply executing:
  chmod 0644 /etc/apt/trusted.gpg.d/keyring.gpg
after copy.
tags/0.18.4
Adrian Vondendriesch 5 years ago
parent
commit
a490dbbe27
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      pbuilder-hookdir/D20releaserepo

+ 1
- 0
pbuilder-hookdir/D20releaserepo View File

@@ -21,6 +21,7 @@ if [ -d "$TMPAPT" ]; then
echo "Using keyring for additional apt sources."

cp "${TMPAPT}/keyring.gpg" /etc/apt/trusted.gpg.d
chmod 0644 /etc/apt/trusted.gpg.d/keyring.gpg
fi

if [ "$UPDATE_PKGLIST" = 1 ]; then


Loading…
Cancel
Save