From d5d774e324687f8891816f0883d620c637613ad1 Mon Sep 17 00:00:00 2001 From: Stefan Majer Date: Mon, 21 Aug 2023 15:48:51 +0200 Subject: [PATCH] log copy process --- cmd/internal/database/postgres/upgrade.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/internal/database/postgres/upgrade.go b/cmd/internal/database/postgres/upgrade.go index 42a571e..636cdb5 100644 --- a/cmd/internal/database/postgres/upgrade.go +++ b/cmd/internal/database/postgres/upgrade.go @@ -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()