diff --git a/postgres_15/rootfs/etc/cont-init.d/99-run.sh b/postgres_15/rootfs/etc/cont-init.d/99-run.sh index d836e7141..eb4c8f097 100755 --- a/postgres_15/rootfs/etc/cont-init.d/99-run.sh +++ b/postgres_15/rootfs/etc/cont-init.d/99-run.sh @@ -321,6 +321,10 @@ upgrade_postgres_if_needed() { cp "$backup_target/postgresql.conf" "$PGDATA" fi + if [ -f "$backup_target/pg_hba.conf" ]; then + cp -f "$backup_target/pg_hba.conf" "$PGDATA" + fi + bashio::log.info "Upgrade completed successfully." RESTART_NEEDED=true