From 89c18c5540a6265f5a84728bbf7653ef54415c90 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 3 Feb 2024 20:49:54 +0100 Subject: [PATCH] Correct database user https://github.com/alexbelgium/hassio-addons/issues/1213 --- postgres/rootfs/docker-entrypoint-initdb.d/10-vector.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/postgres/rootfs/docker-entrypoint-initdb.d/10-vector.sh b/postgres/rootfs/docker-entrypoint-initdb.d/10-vector.sh index 2a63e79f7..984fcc3db 100755 --- a/postgres/rootfs/docker-entrypoint-initdb.d/10-vector.sh +++ b/postgres/rootfs/docker-entrypoint-initdb.d/10-vector.sh @@ -13,8 +13,7 @@ bashio::log.info "Enabling vector.rs" DB_PORT=5432 DB_HOSTNAME=localhost DB_PASSWORD="$(bashio::config 'POSTGRES_PASSWORD')" -DB_USERNAME=postgres -if bashio::config.has_value "POSTGRES_USER"; then POSTGRES_USER="$(bashio::config "POSTGRES_USER")"; else POSTGRES_USER=postgres; fi +if bashio::config.has_value "DB_USERNAME"; then DB_USERNAME="$(bashio::config "DB_USERNAME")"; else DB_USERNAME=postgres; fi export DB_PORT export DB_HOSTNAME