Skip to content

Commit

Permalink
log copy process
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 committed Aug 21, 2023
1 parent a6e2826 commit d5d774e
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 @@ -261,7 +261,8 @@ func (db *Postgres) copyPostgresBinaries() error {
return fmt.Errorf("unable to remove old pgbindir %w", err)
}

copy := exec.Command("cp", "-a", bindir, pgbindir)
db.log.Infow("copying postgres binaries for later upgrades", "from", bindir, "to", pgbindir)
copy := exec.Command("cp", "-av", bindir, pgbindir)
copy.Stdout = os.Stdout
copy.Stderr = os.Stderr
err = copy.Run()
Expand Down

0 comments on commit d5d774e

Please sign in to comment.