From bf6506ef5bff215dc728737faf90f9ded34810c9 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 31 Jan 2024 10:21:46 +0100 Subject: [PATCH] Update 99-run.sh --- postgres/rootfs/etc/cont-init.d/99-run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postgres/rootfs/etc/cont-init.d/99-run.sh b/postgres/rootfs/etc/cont-init.d/99-run.sh index 13d154eaf..2c2237ab8 100755 --- a/postgres/rootfs/etc/cont-init.d/99-run.sh +++ b/postgres/rootfs/etc/cont-init.d/99-run.sh @@ -58,10 +58,10 @@ bashio::log.info "Starting the app" echo " " # Add docker-entrypoint command -if "$(bashio::info.arch)" != "armv7"; then +if [ "$(bashio::info.arch)" != "armv7" ]; then sed -i "/exec \"\$@\"/i psql \"postgres://$DB_USERNAME:$DB_PASSWORD@$DB_HOSTNAME:$DB_PORT\" < setup_postgres.sql || true" docker-entrypoint.sh docker-entrypoint.sh postgres -c shared_preload_libraries=vectors.so else - bashio::log.warning "Your architectur is armv7, vector.rs is disabled as not supported" + bashio::log.warning "Your architecture is armv7, vector.rs is disabled as not supported" docker-entrypoint.sh postgres fi