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