Run apt-get update before installing UCA keyring

Ensure local apt cache is updated before installing the ubuntu-cloud-keyring
package.

Change-Id: I53bd032693b34462f900c75bf5f908a042e23287
Partial-bug: #1326754
This commit is contained in:
Adam Gandelman 2014-06-09 13:58:16 -07:00
parent 662bda0536
commit 93bd71af25
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ if [ "$os" = "debian" ]; then
if $(grep -Eqs 'Ubuntu 12.04' /etc/lsb-release); then
#adding Ubuntu Cloud Archive Repository only if not present : bug https://bugs.launchpad.net/tripleo/+bug/1212237
#Ubuntu 12.04 has a too-old libvirt-bin but a newer one is present in the Ubuntu cloud archive.
sudo apt-get update
DEBIAN_FRONTEND=noninteractive sudo apt-get install --yes ubuntu-cloud-keyring
(grep -Eqs "precise-updates/grizzly" /etc/apt/sources.list.d/cloud-archive.list) || echo 'deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/grizzly main
' | sudo tee -a /etc/apt/sources.list.d/cloud-archive.list