Skip to content

Commit

Permalink
no need for matching sidecars
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 committed Aug 21, 2023
1 parent d5d774e commit ab7594a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/internal/database/postgres/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const (
postgresUpgradeCmd = "pg_upgrade"
postgresInitDBCmd = "initdb"
postgresVersionFile = "PG_VERSION"
oldPostgresBindir = "/usr/local/bin/pg-old"
)

var (
Expand Down Expand Up @@ -81,6 +80,8 @@ func (db *Postgres) Upgrade() error {
return fmt.Errorf("database is newer than postgres binary")
}

oldPostgresBindir := fmt.Sprintf("pg-bin-v%d", pgVersion)

// Check if old pg_config are present and match pgVersion
oldPostgresConfigCmd := path.Join(oldPostgresBindir, postgresConfigCmd)
if ok := db.isCommandPresent(oldPostgresConfigCmd); !ok {
Expand Down

0 comments on commit ab7594a

Please sign in to comment.