initial commit
This commit is contained in:
commit
f6b4c20e4a
14 changed files with 160 additions and 0 deletions
11
rootfs/etc/cont-init.d/00-password
Normal file
11
rootfs/etc/cont-init.d/00-password
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue