initial commit

This commit is contained in:
Sebastian Hugentobler 2017-09-04 16:00:44 +02:00
commit f6b4c20e4a
14 changed files with 160 additions and 0 deletions

View file

@ -0,0 +1,11 @@
#!/usr/bin/with-contenv sh
cat <<EOF > /var/lib/postgresql/data/pg_hba.conf
local all all trust
EOF
s6-setuidgid postgres pg_ctl -D "$PGDATA" -o "-c listen_addresses='localhost'" -w start
s6-setuidgid postgres psql --command "ALTER USER postgres WITH PASSWORD '${POSTGRES_PASSWORD}';"
s6-setuidgid postgres pg_ctl -D "$PGDATA" -o "-c listen_addresses='localhost'" -w stop