Ubuntu VM image build: try update twice
Occasionally, short-term temporary connectivity problems prevent ubuntu from updating on GCE. As a workaround, attempt these commands twice. Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
parent
cf4288e3cc
commit
4929662c8a
|
|
@ -21,9 +21,10 @@ install_ooe
|
||||||
export GOPATH="$(mktemp -d)"
|
export GOPATH="$(mktemp -d)"
|
||||||
trap "sudo rm -rf $GOPATH" EXIT
|
trap "sudo rm -rf $GOPATH" EXIT
|
||||||
|
|
||||||
ooe.sh sudo apt-get -qq update
|
# Try twice as workaround for minor networking problems
|
||||||
ooe.sh sudo apt-get -qq update # sometimes it needs to get it twice :S
|
echo "Updating system and installing package dependencies"
|
||||||
ooe.sh sudo apt-get -qq upgrade
|
ooe.sh sudo apt-get -qq update || sudo apt-get -qq update
|
||||||
|
ooe.sh sudo apt-get -qq upgrade || sudo apt-get -qq upgrade
|
||||||
ooe.sh sudo apt-get -qq install --no-install-recommends \
|
ooe.sh sudo apt-get -qq install --no-install-recommends \
|
||||||
apparmor \
|
apparmor \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue