This commit is contained in:
Alexandre
2025-07-16 12:19:18 +02:00
committed by GitHub
parent 9ece52c420
commit 1f2390829b
2 changed files with 3 additions and 3 deletions

View File

@@ -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]"
} }

View File

@@ -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..."
# Alpines initdb runs as the postgres user # Alpines 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'"