switch to s6-rc

This commit is contained in:
Sebastian Hugentobler 2022-02-13 08:23:50 +01:00
parent 5103f5b01f
commit 05459d3577
Signed by: shu
GPG key ID: BB32CF3CA052C2F0
16 changed files with 31 additions and 20 deletions

9
rootfs/bin/db-password Executable file
View file

@ -0,0 +1,9 @@
#!/command/with-contenv sh
echo "local all all trust" > "$PGDATA/pg_hba.conf"
pg_ctl -D "$PGDATA" -o "-c listen_addresses='localhost'" -w start
psql --command "ALTER USER postgres WITH PASSWORD '${POSTGRES_PASSWORD}';"
pg_ctl -D "$PGDATA" -o "-c listen_addresses='localhost'" -w stop