Commit a490dbbe authored by Adrian Vondendriesch's avatar Adrian Vondendriesch

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.
parent d3a0dc30
......@@ -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
if [ "$UPDATE_PKGLIST" = 1 ]; then
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment