From 1712e34efad5cd06712c32d2a9e916b086852286 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 31 Jan 2024 04:57:14 +0100 Subject: [PATCH] Update 99-run.sh --- postgres/rootfs/etc/cont-init.d/99-run.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/postgres/rootfs/etc/cont-init.d/99-run.sh b/postgres/rootfs/etc/cont-init.d/99-run.sh index db1757493..a2bb338be 100755 --- a/postgres/rootfs/etc/cont-init.d/99-run.sh +++ b/postgres/rootfs/etc/cont-init.d/99-run.sh @@ -29,8 +29,8 @@ chmod 777 "$PGDATA" # Permissions chmod -R 777 "$CONFIG_HOME" -# Copy new file -cp "$CONFIG_HOME"/postgresql.conf /data/ +# Copy new config +# cp "$CONFIG_HOME"/postgresql.conf /config/ ############## # Launch App # @@ -45,4 +45,8 @@ echo " " # Add docker-entrypoint command # shellcheck disable=SC2086 -docker-entrypoint.sh postgres +if bashio::config.true "vector.rs_enabled"; then + docker-entrypoint.sh postgres -c shared_preload_libraries=vectors.so +else + docker-entrypoint.sh postgres +fi