From 1f2390829b71a851b26f1b768c3a0e27ab6fbd02 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 16 Jul 2025 12:19:18 +0200 Subject: [PATCH] avoid s6 --- ente/config.json | 2 +- ente/rootfs/etc/services.d/00-postgres/run | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ente/config.json b/ente/config.json index 085f7bdf3..364a6fd9a 100644 --- a/ente/config.json +++ b/ente/config.json @@ -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]" } diff --git a/ente/rootfs/etc/services.d/00-postgres/run b/ente/rootfs/etc/services.d/00-postgres/run index d7fecff47..b5e9a08b5 100644 --- a/ente/rootfs/etc/services.d/00-postgres/run +++ b/ente/rootfs/etc/services.d/00-postgres/run @@ -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'"