postgres/rootfs/bin/initpg

5 lines
84 B
Bash
Executable file

#!/bin/sh
if [ ! -f "$PGDATA/PG_VERSION" ]; then
initdb --username=postgres
fi