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

6 lines
123 B
Text
Raw Normal View History

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