Browse Source

Merge pull request #27184 from tiborvass/gnupg-debian-stretch

install: fix debian stretch
Victor Vieux 8 years ago
parent
commit
2fd674a00f
1 changed files with 5 additions and 0 deletions
  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' )
 				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