mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-01 13:24:04 +02:00
Avoid upgrade
This commit is contained in:
@@ -38,5 +38,5 @@
|
|||||||
"slug": "postgres",
|
"slug": "postgres",
|
||||||
"udev": true,
|
"udev": true,
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/postgres",
|
"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
|
# 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
|
if [ "$OLD_PG_VERSION" != "$PG_MAJOR_VERSION" ]; then
|
||||||
bashio::log.warning "PostgreSQL major version changed ($OLD_PG_VERSION → $PG_MAJOR_VERSION). Running upgrade..."
|
bashio::log.warning "PostgreSQL major version changed ($OLD_PG_VERSION → $PG_MAJOR_VERSION). Running upgrade..."
|
||||||
|
|||||||
Reference in New Issue
Block a user