Skip to content

Commit

Permalink
Merge pull request #255 from camptocamp/pgisready
Browse files Browse the repository at this point in the history
[REM] Replace wait_postgres.sh with pg_isready
  • Loading branch information
yvaucher authored Oct 19, 2023
2 parents dcf64f7 + 6845ca3 commit f8f9764
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 24 deletions.
2 changes: 1 addition & 1 deletion bin/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ if [ ! -f "${CONFIG_TARGET}" ]; then
fi

# Wait until postgres is up
wait_postgres.sh
pg_isready

BASE_CMD=$(basename $1)
CMD_ARRAY=($*)
Expand Down
2 changes: 1 addition & 1 deletion bin/runmigration
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# steps on top of it.
set -e

wait_postgres.sh
pg_isready
CACHE_DIR=${CACHE_DIR:=/tmp/cachedb}

echo $CACHE_DIR
Expand Down
3 changes: 2 additions & 1 deletion bin/runtests
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ set -e

# TODO: if we are not in TRAVIS, make a template then run tests on a copy

wait_postgres.sh
pg_isready

LOCAL_SRC_DIR=/odoo/local-src
CACHE_DIR=${CACHE_DIR:=/tmp/cachedb}

Expand Down
21 changes: 0 additions & 21 deletions bin/wait_postgres.sh

This file was deleted.

0 comments on commit f8f9764

Please sign in to comment.