Procházet zdrojové kódy

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 před 8 roky
rodič
revize
047264763a
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. 5 0
      hack/install.sh

+ 5 - 0
hack/install.sh

@@ -440,6 +440,11 @@ do_install() {
 				( set -x; $sh_c 'sleep 3; apt-get install -y -q curl ca-certificates' )
 				( set -x; $sh_c 'sleep 3; apt-get install -y -q curl ca-certificates' )
 				curl='curl -sSL'
 				curl='curl -sSL'
 			fi
 			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
 			set -x
 			for key_server in $key_servers ; do
 			for key_server in $key_servers ; do