From edadb2c6a0268c672979bd21a2940663d17d675d Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 31 Jan 2024 10:08:07 +0100 Subject: [PATCH] Update 99-run.sh --- postgres/rootfs/etc/cont-init.d/99-run.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/postgres/rootfs/etc/cont-init.d/99-run.sh b/postgres/rootfs/etc/cont-init.d/99-run.sh index 05e56ddad..13d154eaf 100755 --- a/postgres/rootfs/etc/cont-init.d/99-run.sh +++ b/postgres/rootfs/etc/cont-init.d/99-run.sh @@ -34,10 +34,14 @@ chmod -R 777 "$CONFIG_HOME" ##################### # Set variables for vector.rs -export DB_PORT=5432 -export DB_HOSTNAME=localhost -export DB_USERNAME=postgres -export DB_PASSWORD="$(bashio::config 'POSTGRES_PASSWORD')" +DB_PORT=5432 +DB_HOSTNAME=localhost +DB_USERNAME=postgres +DB_PASSWORD="$(bashio::config 'POSTGRES_PASSWORD')" +export DB_PORT +export DB_HOSTNAME +export DB_USERNAME +export DB_PASSWORD echo "DROP EXTENSION IF EXISTS vectors; CREATE EXTENSION vectors; \q"> setup_postgres.sql