Skip to content

Commit

Permalink
Fix permissions of keyring.gpg in D20releaserepo.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
disco-stu committed Mar 12, 2016
1 parent d3a0dc3 commit a490dbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pbuilder-hookdir/D20releaserepo
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a490dbb

Please sign in to comment.