Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 committed Aug 20, 2023
1 parent a5b825d commit 66c221e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/internal/database/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ func (db *Postgres) Upgrade() error {
pgUpgradeArgs := []string{"--old-datadir", db.datadir, "--new-datadir", newDataDirTemp, "--old-bindir", oldPostgresBinDir, "--new-bindir", "/usr/local/bin", "--link"}
db.log.Infow("running pg_upgrade with", "args", pgUpgradeArgs)
cmd = exec.Command(postgresUpgradeCmd, pgUpgradeArgs...) //nolint:gosec
cmd.Dir = "/data"
out, err = cmd.CombinedOutput()
if err != nil {
db.log.Infow("unable to run pg_upgrade on new new datadir, abort upgrade", "output", out, "error", err)
Expand Down

0 comments on commit 66c221e

Please sign in to comment.