Avoid upgrade

This commit is contained in:
Alexandre
2025-02-15 11:34:59 +01:00
parent 3844b03342
commit d80fe6cf52
2 changed files with 2 additions and 2 deletions

View File

@@ -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"
}

View File

@@ -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..."