From 7051e52aef0bfd98598b6b272baf4985159c35b6 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 15 Feb 2025 10:47:43 +0100 Subject: [PATCH] Adapt --- postgres/rootfs/etc/cont-init.d/99-run.sh | 7 ++++--- 1 file changed, 4 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 0e339d4ca..03ed40a43 100755 --- a/postgres/rootfs/etc/cont-init.d/99-run.sh +++ b/postgres/rootfs/etc/cont-init.d/99-run.sh @@ -14,7 +14,7 @@ VECTOR_VERSION_FILE="$PGDATA/pgvector_version" # Create necessary directories with secure permissions mkdir -p "$CONFIG_HOME" "$PGDATA" chown -R postgres:postgres "$PGDATA" -chmod 700 "$PGDATA" "$CONFIG_HOME" +chmod 755 "$PGDATA" "$CONFIG_HOME" # Detect PostgreSQL Major Version from ENV (default to 15 if not set) PG_MAJOR_VERSION="${PG_MAJOR:-15}" @@ -33,9 +33,10 @@ bashio::log.info "Starting PostgreSQL..." if [ "$(bashio::info.arch)" = "armv7" ]; then bashio::log.warning "ARMv7 detected: Starting without vectors.so" - nohup docker-entrypoint.sh postgres 2>&1 & + docker-entrypoint.sh postgres & true + exit 0 else - nohup docker-entrypoint.sh postgres -c shared_preload_libraries=vectors.so -c search_path="public, vectors" 2>&1 & + docker-entrypoint.sh postgres -c shared_preload_libraries=vectors.so -c search_path="public, vectors" & true fi ###############################