diff options
-rwxr-xr-x | tools/ci/scripts/init.sh | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tools/ci/scripts/init.sh b/tools/ci/scripts/init.sh index 8cde42088..64e11f3b0 100755 --- a/tools/ci/scripts/init.sh +++ b/tools/ci/scripts/init.sh @@ -29,6 +29,14 @@ function aptget_update { if [ "$?" != 0 ]; then sleep 5s apt-get update + if [ "$?" != 0 ]; then + sleep 10s + apt-get update + if [ "$?" != 0 ]; then + sleep 15s + apt-get update + fi + fi fi fi fi @@ -42,11 +50,19 @@ function aptget_install { apt-get -y -qq install $* if [ "$?" != 0 ]; then sleep 2s + apt-get -y -qq install $* if [ "$?" != 0 ]; then sleep 5s apt-get -y -qq install $* + if [ "$?" != 0 ]; then + sleep 10s + apt-get -y -qq install $* + if [ "$?" != 0 ]; then + sleep 15s + apt-get -y -qq install $* + fi + fi fi - apt-get -y -qq install $* fi fi } |