diff --git a/postgres/CHANGELOG.md b/postgres/CHANGELOG.md index 31930e61b..d861aedbc 100644 --- a/postgres/CHANGELOG.md +++ b/postgres/CHANGELOG.md @@ -1,5 +1,4 @@ -## 15.7-10 (14-01-2025) -- Minor bugs fixed +- Removed vector.rs installation script, it is now part of the upstream entrypoint ## 15.7-7 (03-01-2025) - Fix vector.rs not found at startup diff --git a/postgres/config.json b/postgres/config.json index b4e9308ac..43dbf92de 100644 --- a/postgres/config.json +++ b/postgres/config.json @@ -38,5 +38,5 @@ "slug": "postgres", "udev": true, "url": "https://github.com/alexbelgium/hassio-addons/tree/master/postgres", - "version": "15.7-10" + "version": "15.7-11" } diff --git a/postgres/rootfs/docker-entrypoint-initdb.d/10-vector.sh b/postgres/rootfs/docker-entrypoint-initdb.d/10-vector.sh deleted file mode 100755 index 5948b479e..000000000 --- a/postgres/rootfs/docker-entrypoint-initdb.d/10-vector.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env bashio -# shellcheck shell=bash -set -e - -bashio::log.info "Waiting for port 5432 to open..." - -# Wait for transmission to become available -( bashio::net.wait_for 5432 localhost 900 - -bashio::log.info "Enabling vector.rs" - -# Set variables for vector.rs -DB_PORT=5432 -DB_HOSTNAME=localhost -DB_PASSWORD="$(bashio::config 'POSTGRES_PASSWORD')" -if bashio::config.has_value "POSTGRES_USER"; then DB_USERNAME="$(bashio::config "POSTGRES_USER")"; else DB_USERNAME=postgres; fi - -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 - -# Enable vectors -psql "postgres://$DB_USERNAME:$DB_PASSWORD@$DB_HOSTNAME:$DB_PORT" < /setup_postgres.sql >/dev/null || true -rm /setup_postgres.sql || true -) & true