switch to s6-rc

This commit is contained in:
Sebastian Hugentobler 2022-02-13 09:24:05 +01:00
parent 05459d3577
commit b4e60794bb
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0
2 changed files with 2 additions and 3 deletions

View File

@ -1,7 +1,6 @@
FROM thallian/confd-env:latest
ENV PGDATA=/var/lib/postgresql/data
ENV S6_KEEP_ENV=1
RUN apk add --no-cache \
postgresql14 \

View File

@ -1,5 +1,5 @@
#!/command/with-contenv sh
if [ ! -f "/var/lib/postgresql/data/PG_VERSION" ]; then
s6-setuidgid postgres initdb --username=postgres
if [ ! -f "$PGDATA/PG_VERSION" ]; then
initdb --username=postgres
fi