]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
script/build_utils.sh: import ppa key into apt's keyring 939/head
authorKefu Chai <kchai@redhat.com>
Wed, 13 Dec 2017 06:04:06 +0000 (14:04 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 13 Dec 2017 06:16:43 +0000 (14:16 +0800)
to be immune from the MITM attack

Signed-off-by: Kefu Chai <kchai@redhat.com>
scripts/build_utils.sh

index dbb587a3f055276656e7423fb43f27c57ca7aa44..2c4f7f1bacd3fda5cd562d304bb34a86053d6196 100644 (file)
@@ -457,8 +457,10 @@ echo "deb http://mirror.cs.uchicago.edu/ubuntu-toolchain-r $DIST main" >> \
   /etc/apt/sources.list.d/ubuntu-toolchain-r.list
 echo deb http://mirror.yandex.ru/mirrors/launchpad/ubuntu-toolchain-r $DIST main" >> \
   /etc/apt/sources.list.d/ubuntu-toolchain-r.list
+# import PPA's signing key into APT's keyring
+apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1E9377A2BA9EF27F
 apt-get update
-apt-get install -y --allow-unauthenticated g++-7
+apt-get install -y g++-7
 EOF
 
         cat > $hookdir/E10update-gcc-alternatives <<EOF