mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-15 10:53:09 -06:00
Initially connect to postgres DB when creating dendrite DB
Signed-off-by: Maximilian Seifert <max.seifert@drglitch.net>
This commit is contained in:
parent
d52210c5b8
commit
433526b010
|
|
@ -40,7 +40,7 @@ func init() {
|
|||
|
||||
if insideCi {
|
||||
database := "dendrite_device"
|
||||
cmd := exec.Command("psql", database)
|
||||
cmd := exec.Command("psql", "postgres")
|
||||
cmd.Stdin = strings.NewReader(
|
||||
fmt.Sprintf("DROP DATABASE IF EXISTS %s; CREATE DATABASE %s;", database, database),
|
||||
)
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ func init() {
|
|||
|
||||
if insideCi {
|
||||
database := "dendrite_syncapi"
|
||||
cmd := exec.Command("psql", database)
|
||||
cmd := exec.Command("psql", "postgres")
|
||||
cmd.Stdin = strings.NewReader(
|
||||
fmt.Sprintf("DROP DATABASE IF EXISTS %s; CREATE DATABASE %s;", database, database),
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue