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.
@@ -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
