From 26be9c37aaee44f31a852da46b07032577db6fc8 Mon Sep 17 00:00:00 2001 From: Michael McVady Date: Sat, 8 Jul 2023 13:41:09 -0500 Subject: Squash db connection bug --- src/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/init.c') diff --git a/src/init.c b/src/init.c index ea3daf3..2c1da6f 100644 --- a/src/init.c +++ b/src/init.c @@ -57,9 +57,9 @@ int init_db(void) { if (env) kore_buf_appendf(pg_config_buf, "password=%s ", env); - env = getenv("POSTGRES_DBNAME"); + env = getenv("POSTGRES_DB"); if (env) - kore_buf_appendf(pg_config_buf, "user=%s ", env); + kore_buf_appendf(pg_config_buf, "dbname=%s ", env); else kore_buf_append(pg_config_buf, dbname, strlen(dbname)); -- cgit v1.2.3