Browse code

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>

Tibor Vass authored on 2016/10/06 17:45:43
Showing 1 changed files
... ...
@@ -440,6 +440,11 @@ do_install() {
440 440
 				( set -x; $sh_c 'sleep 3; apt-get install -y -q curl ca-certificates' )
441 441
 				curl='curl -sSL'
442 442
 			fi
443
+			if [ ! -e /usr/bin/gpg ]; then
444
+				apt_get_update
445
+				( set -x; $sh_c 'sleep 3; apt-get install -y -q gnupg2 || apt-get install -y -q gnupg' )
446
+			fi
447
+
443 448
 			(
444 449
 			set -x
445 450
 			for key_server in $key_servers ; do