mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-04-14 11:28:02 +02:00
avoid s6
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
"startup": "services",
|
||||
"udev": true,
|
||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||
"version": "1.0.0test7",
|
||||
"version": "1.0.0test8",
|
||||
"video": true,
|
||||
"webui": "http://[HOST]:[PORT:3000]"
|
||||
}
|
||||
|
||||
@@ -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