Skip to content

Commit

Permalink
Don't pipe keys directly to apt-key.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed May 9, 2020
1 parent e47bf2a commit 57cb99c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions docker/linux-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,16 @@ main() {
dpkg --add-architecture "${arch}" || echo "foreign-architecture ${arch}" > /etc/dpkg/dpkg.cfg.d/multiarch

# Add Debian keys.
curl -sL https://ftp-master.debian.org/keys/archive-key-{7.0,8,9,10}.asc | apt-key add -
curl -sL https://ftp-master.debian.org/keys/archive-key-{8,9,10}-security.asc | apt-key add -
curl -sL https://ftp-master.debian.org/keys/release-{7,8,9,10}.asc | apt-key add -
curl -sL https://www.ports.debian.org/archive_{2020,2021}.key | apt-key add -
curl --retry 3 -sSfL 'https://ftp-master.debian.org/keys/archive-key-{7.0,8,9,10}.asc' -O
curl --retry 3 -sSfL 'https://ftp-master.debian.org/keys/archive-key-{8,9,10}-security.asc' -O
curl --retry 3 -sSfL 'https://ftp-master.debian.org/keys/release-{7,8,9,10}.asc' -O
curl --retry 3 -sSfL 'https://www.ports.debian.org/archive_{2020,2021}.key' -O

for key in *.asc *.key; do
apt-key add "${key}"
rm "${key}"
done

apt-get update

mkdir -p "/qemu/${arch}"
Expand Down

0 comments on commit 57cb99c

Please sign in to comment.