Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b21fb10

Browse files
Merge pull request #45 from pavouk-0/37-jammy-healthchecks
[#37] healthcheck-coord: hack jammy healthchecks, with random sleep
2 parents 553e38e + 524baac commit b21fb10

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎bin/docker-healthcheck-coord

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
#!/bin/sh -eu
1+
#!/bin/bash -eu
22

33
bootstrapped=.bootstrapped
4-
4+
sleep_int_max=30
5+
#-------------------------------------------------------------------------------
56
if [ ! -f "$bootstrapped" ]; then
7+
sleep_int=$(((RANDOM % sleep_int_max) + 1))
8+
echo "Sleeping to avoid race-condition (!) [$sleep_int s]"
9+
sleep "$sleep_int"
10+
611
createuser \
712
-h "${PG_HOST}" \
813
-p "${PG_PORT}" \

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /