Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry multiple times when installing package dependencies #19

Merged
merged 3 commits into from
Feb 25, 2019

Conversation

pzakha
Copy link
Contributor

@pzakha pzakha commented Feb 22, 2019

Since we've seen a few issues when fetching packages from external repositories (e.g. #7), this should hopefully help us in case there are intermittent issues.

TESTING

for attempt in {1..3}; do
echo "Running: sudo env DEBIAN_FRONTEND=noninteractive " \
"apt-get install -y $*"
sudo env DEBIAN_FRONTEND=noninteractive apt-get install \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is no longer going through logmust. Why not?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When logmust fails it kills the script.

But I should have also added a "die" statement after "echo_error"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants