postgres/rootfs/etc/cont-init.d/00-initdb

6 lines
123 B
Plaintext
Raw Normal View History

2017-09-04 14:00:44 +00:00
#!/usr/bin/with-contenv sh
if [ ! -f ${PGDATA}/PG_VERSION ]; then
s6-setuidgid postgres initdb --username=postgres
fi