install dirmngr if needed
as of Ubuntu Yakkety, dirmngr is now in a separate package (see https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1634464) this patch updates the install script to install the dirmngr package if it's not installed. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
39f717ac89
commit
f5263c8074
|
@ -462,11 +462,17 @@ 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
|
if ! command -v gpg > /dev/null; then
|
||||||
apt_get_update
|
apt_get_update
|
||||||
( set -x; $sh_c 'sleep 3; apt-get install -y -q gnupg2 || apt-get install -y -q gnupg' )
|
( set -x; $sh_c 'sleep 3; apt-get install -y -q gnupg2 || apt-get install -y -q gnupg' )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# dirmngr is a separate package in ubuntu yakkety; see https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1634464
|
||||||
|
if ! command -v dirmngr > /dev/null; then
|
||||||
|
apt_get_update
|
||||||
|
( set -x; $sh_c 'sleep 3; apt-get install -y -q dirmngr' )
|
||||||
|
fi
|
||||||
|
|
||||||
(
|
(
|
||||||
set -x
|
set -x
|
||||||
echo "$docker_key" | apt-key add -
|
echo "$docker_key" | apt-key add -
|
||||||
|
|
Loading…
Reference in New Issue