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

6 lines
123 B
Plaintext

#!/usr/bin/with-contenv sh
if [ ! -f ${PGDATA}/PG_VERSION ]; then
s6-setuidgid postgres initdb --username=postgres
fi