install: fix debian stretch

Apparently, Debian stretch does not come with gpg installed by
default. This patch ensures that gpg is installed.

Signed-off-by: Tibor Vass <tibor@docker.com>
(cherry picked from commit 047264763a)
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
Tibor Vass 2016-10-06 10:45:43 +02:00 committed by Victor Vieux
parent 1863675001
commit 026f385aa3
1 changed files with 5 additions and 0 deletions

View File

@ -436,6 +436,11 @@ do_install() {
( set -x; $sh_c 'sleep 3; apt-get install -y -q curl ca-certificates' )
curl='curl -sSL'
fi
if [ ! -e /usr/bin/gpg ]; then
apt_get_update
( set -x; $sh_c 'sleep 3; apt-get install -y -q gnupg2 || apt-get install -y -q gnupg' )
fi
(
set -x
for key_server in $key_servers ; do