Skip to content

Commit

Permalink
Merge pull request dokku#46 from fffunction/fffunction-retry-patch-1
Browse files Browse the repository at this point in the history
Sets loop variable to 100 to allow for more retries
  • Loading branch information
josegonzalez authored Nov 9, 2016
2 parents 310232f + c7e2c9b commit 67ff113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ service_create_container() {
retry-docker-command() {
local ID="$1" COMMAND="$2"
local i=0 success=false
until [ $i -ge 10 ]; do
until [ $i -ge 100 ]; do
set +e; docker exec -it "$ID" bash -c "$COMMAND" 2> /dev/null; exit_code=$? ; set -e
if [[ "$exit_code" == 0 ]]; then
success=true
Expand Down

0 comments on commit 67ff113

Please sign in to comment.