mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-03 22:34:11 +02:00
avoid s6
This commit is contained in:
@@ -78,7 +78,7 @@
|
|||||||
"startup": "services",
|
"startup": "services",
|
||||||
"udev": true,
|
"udev": true,
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "1.0.0test7",
|
"version": "1.0.0test8",
|
||||||
"video": true,
|
"video": true,
|
||||||
"webui": "http://[HOST]:[PORT:3000]"
|
"webui": "http://[HOST]:[PORT:3000]"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ fi
|
|||||||
if [[ ! -s "${PGDATA}/PG_VERSION" ]]; then
|
if [[ ! -s "${PGDATA}/PG_VERSION" ]]; then
|
||||||
bashio::log.info "Initializing Postgres data directory..."
|
bashio::log.info "Initializing Postgres data directory..."
|
||||||
# Alpine’s initdb runs as the postgres user
|
# Alpine’s initdb runs as the postgres user
|
||||||
s6-setuidgid postgres "$INITDB" -D "${PGDATA}"
|
su - postgres -c "$INITDB -D $PGDATA"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bashio::log.info "Starting Postgres (127.0.0.1:5432)..."
|
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