From 8199c9a84aaed8b9790e4618a7a0dbbf7c4c9b66 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 22 Jan 2025 08:35:50 +0100 Subject: [PATCH] Update 99-run.sh --- postgres/rootfs/etc/cont-init.d/99-run.sh | 9 +++++---- 1 file changed, 5 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 fb5b0f903..e3a707cf5 100755 --- a/postgres/rootfs/etc/cont-init.d/99-run.sh +++ b/postgres/rootfs/etc/cont-init.d/99-run.sh @@ -35,14 +35,15 @@ cd /config || true bashio::log.info "Starting the app" # Start background tasks -if [ "$(bashio::info.arch)" != "armv7" ]; then -# /./docker-entrypoint-initdb.d/10-vector.sh & true - docker-entrypoint.sh postgres -c shared_preload_libraries=vectors.so -c search_path="public, vectors" & true -else +if [ "$(bashio::info.arch)" = "armv7" ]; then bashio::log.warning "ARMv7 detected: Starting without vectors.so" docker-entrypoint.sh postgres & true + exit 0 fi +# If not armv7 +docker-entrypoint.sh postgres -c shared_preload_libraries=vectors.so -c search_path="public, vectors" & true + #################### # Enable vector.rs # ####################