From d80fe6cf525c73e61a431ec204c2a5e42a29859d Mon Sep 17 00:00:00 2001 From: Alexandre Date: Sat, 15 Feb 2025 11:34:59 +0100 Subject: [PATCH] Avoid upgrade --- postgres/config.json | 2 +- postgres/rootfs/etc/cont-init.d/99-run.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/postgres/config.json b/postgres/config.json index cbe70ed92..890368841 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-24" + "version": "15.7-25" } diff --git a/postgres/rootfs/etc/cont-init.d/99-run.sh b/postgres/rootfs/etc/cont-init.d/99-run.sh index c72b00a04..2499283a4 100755 --- a/postgres/rootfs/etc/cont-init.d/99-run.sh +++ b/postgres/rootfs/etc/cont-init.d/99-run.sh @@ -65,7 +65,7 @@ bashio::log.info "Waiting for PostgreSQL to start..." ############################### # Read the previous PostgreSQL version from file -OLD_PG_VERSION=$(cat "$PG_VERSION_FILE" 2>/dev/null || echo "") +OLD_PG_VERSION=$(cat "$PG_VERSION_FILE" 2>/dev/null || echo "$PG_MAJOR_VERSION") if [ "$OLD_PG_VERSION" != "$PG_MAJOR_VERSION" ]; then bashio::log.warning "PostgreSQL major version changed ($OLD_PG_VERSION → $PG_MAJOR_VERSION). Running upgrade..."