diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)); |