postgres/rootfs/bin/initdb

5 lines
140 B
Text
Executable file

#!/command/with-contenv sh
if [ ! -f "/var/lib/postgresql/data/PG_VERSION" ]; then
s6-setuidgid postgres initdb --username=postgres
fi