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,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