postgres/rootfs/bin/initdb

6 lines
140 B
Plaintext
Executable File

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