mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-16 09:28:20 +01:00
Avoid upgrade
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user