From 66c221ed1fbff6aaae24615dcffe3c21b4d8d5e6 Mon Sep 17 00:00:00 2001 From: Stefan Majer Date: Sun, 20 Aug 2023 15:44:52 +0200 Subject: [PATCH] fix --- cmd/internal/database/postgres/postgres.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/internal/database/postgres/postgres.go b/cmd/internal/database/postgres/postgres.go index 4d8ddc5..16cfb14 100644 --- a/cmd/internal/database/postgres/postgres.go +++ b/cmd/internal/database/postgres/postgres.go @@ -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)