diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96efca6..81bc18b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -225,7 +225,7 @@ jobs: run: | docker ps -a docker logs --timestamps aio || true - docker exec aio cat /data/postgres.log || true + docker run --rm -v aio-data:/data busybox cat /data/postgres/postgres.log || true - name: ArrĂȘt et suppression du volume if: always() diff --git a/deploy/aio/entrypoint.sh b/deploy/aio/entrypoint.sh index f422077..88d740f 100755 --- a/deploy/aio/entrypoint.sh +++ b/deploy/aio/entrypoint.sh @@ -52,7 +52,7 @@ chmod 700 "$PGDATA" runuser -u postgres -- pg_ctl -D "$PGDATA" -w -t 60 \ -o "-c listen_addresses=127.0.0.1 -c unix_socket_directories=/run/postgresql" \ - -l "$DATA_DIR/postgres.log" start >/dev/null + -l "$PGDATA/postgres.log" start >/dev/null if [ "$FIRST_START" = 1 ]; then runuser -u postgres -- psql -q -v ON_ERROR_STOP=1 -c "CREATE ROLE $DB_USER LOGIN"