From f88ec6e5328156822623d9f62749c30447d59700 Mon Sep 17 00:00:00 2001 From: Stefan Majer Date: Mon, 21 Aug 2023 16:28:45 +0200 Subject: [PATCH] Fix --- cmd/internal/database/postgres/upgrade.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/internal/database/postgres/upgrade.go b/cmd/internal/database/postgres/upgrade.go index f9d78d7..dd59279 100644 --- a/cmd/internal/database/postgres/upgrade.go +++ b/cmd/internal/database/postgres/upgrade.go @@ -80,7 +80,7 @@ func (db *Postgres) Upgrade() error { return fmt.Errorf("database is newer than postgres binary") } - oldPostgresBindir := fmt.Sprintf("pg-bin-v%d", pgVersion) + oldPostgresBindir := path.Join(db.datadir, fmt.Sprintf("pg-bin-v%d", pgVersion)) // Check if old pg_config are present and match pgVersion oldPostgresConfigCmd := path.Join(oldPostgresBindir, postgresConfigCmd)