mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 22:04:06 +02:00
avoid s6
This commit is contained in:
@@ -25,8 +25,8 @@ fi
|
||||
if [[ ! -s "${PGDATA}/PG_VERSION" ]]; then
|
||||
bashio::log.info "Initializing Postgres data directory..."
|
||||
# Alpine’s initdb runs as the postgres user
|
||||
s6-setuidgid postgres "$INITDB" -D "${PGDATA}"
|
||||
su - postgres -c "$INITDB -D $PGDATA"
|
||||
fi
|
||||
|
||||
bashio::log.info "Starting Postgres (127.0.0.1:5432)..."
|
||||
exec s6-setuidgid postgres "$POSTGRES" -D "${PGDATA}" -c listen_addresses='127.0.0.1'
|
||||
exec su - postgres -c "$POSTGRES -D $PGDATA -c listen_addresses='127.0.0.1'"
|
||||
|
||||
Reference in New Issue
Block a user