projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46f0c0f
)
16552: Fix cwd warning from psql.
author
Tom Clegg <tom@curii.com>
Thu, 30 Jun 2022 19:04:11 +0000
(15:04 -0400)
committer
Tom Clegg <tom@curii.com>
Thu, 30 Jun 2022 19:04:11 +0000
(15:04 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
lib/install/init.go
patch
|
blob
|
history
diff --git
a/lib/install/init.go
b/lib/install/init.go
index b7ca0701fb08d9a55b2dba3abe66ab8db9f9e8e4..73483d3b3b6cbe015a322cb4619a88d64dff5a6b 100644
(file)
--- a/
lib/install/init.go
+++ b/
lib/install/init.go
@@
-339,6
+339,7
@@
func (initcmd *initCommand) createDB(ctx context.Context, dbconn arvados.Postgre
`CREATE EXTENSION IF NOT EXISTS pg_trgm`,
} {
cmd := exec.CommandContext(ctx, "sudo", "-u", "postgres", "psql", "-c", sql)
+ cmd.Dir = "/"
cmd.Stdout = stderr
cmd.Stderr = stderr
err := cmd.Run()