From: garciadeblas Date: Wed, 20 Apr 2022 22:29:02 +0000 (+0200) Subject: Update install_osm.sh to solve the issue with no valid OpenPGP data found X-Git-Tag: v10.1.1-rc1~8 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=a26ed8648f440fee4826e9be1160ef80a9453823;p=osm%2Fdevops.git Update install_osm.sh to solve the issue with no valid OpenPGP data found Change-Id: Ife80b72991b27c55f2f254b2723a253172e38cc9 Signed-off-by: garciadeblas --- diff --git a/installers/install_osm.sh b/installers/install_osm.sh index 4e1bbb11..33bf7770 100755 --- a/installers/install_osm.sh +++ b/installers/install_osm.sh @@ -101,8 +101,12 @@ add_repo() { || sudo apt-get install -y $need_packages_lw \ || ! echo "failed to install $need_packages_lw" \ || exit 1 - wget -qO - $REPOSITORY_BASE/$RELEASE/OSM%20ETSI%20Release%20Key.gpg | sudo apt-key add - - sudo DEBIAN_FRONTEND=noninteractive add-apt-repository -y "$1" && sudo DEBIAN_FRONTEND=noninteractive apt-get update + wget -q -O OSM-ETSI-Release-key.gpg "$REPOSITORY_BASE/$RELEASE/OSM%20ETSI%20Release%20Key.gpg" + sudo APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add OSM-ETSI-Release-key.gpg \ + || ! echo -e "Could not add GPG key $REPOSITORY_BASE/$RELEASE/OSM%20ETSI%20Release%20Key.gpg" \ + || exit 1 + sudo DEBIAN_FRONTEND=noninteractive add-apt-repository -y "$1" + sudo DEBIAN_FRONTEND=noninteractive apt-get -y update return 0 fi