Update APT indexes before bringing node online

It is possible for our APT lists on disk to be out-of-date. Be sure to
update them, so we don't leave jobs in a broken state.

Change-Id: I019c1832fcaa0a6f162f71e9a8168e2b202f9a79
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-04-09 10:42:31 -04:00
parent 73583fb4a0
commit 8460475981
1 changed files with 5 additions and 0 deletions

View File

@ -316,3 +316,8 @@ elif [ "$LSBDISTID" == "Fedora" ]; then
elif [ "$LSBDISTID" == "openSUSE project" ]; then
sudo sed -i -e "s,http://download.opensuse.org/,$NODEPOOL_OPENSUSE_MIRROR/," /etc/zypp/repos.d/*.repo
fi
if [ "$LSBDISTID" == "Debian" ] || [ "$LSBDISTID" == "Ubuntu" ]; then
# Make sure our indexes are up to date.
sudo apt-get update
fi