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:
parent
73583fb4a0
commit
8460475981
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user