CircleCI-Public / cimg-postgres

MIT License
8 stars 25 forks source link

Hardcoded PGDATA path in entrypoint.sh script #55

Closed codeadict closed 1 year ago

codeadict commented 2 years ago

Currently, providing a custom PG_DATA location fails on line 90 of the entrypoint script https://github.com/CircleCI-Public/cimg-postgres/blob/main/docker-entrypoint.sh#L90. For example if /dev/shm/pgdata/data is provided, CircleCI will fail with:

    pg_ctl -D /dev/shm/pgdata/data -l logfile start

/usr/local/bin/docker-entrypoint.sh: line 90: /var/lib/postgresql/data/postgresql.conf: No such file or directory