提交 77f873ac 编写于 作者: K Kyle Hargraves 提交者: Pratik Naik

dbconsole should not require a username for postgresql. [#207 state:resolved]

Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
上级 15071734
......@@ -40,10 +40,11 @@ def find_cmd(*commands)
exec(find_cmd('mysql5', 'mysql'), *args)
when "postgresql"
ENV['PGUSER'] = config["username"] if config["username"]
ENV['PGHOST'] = config["host"] if config["host"]
ENV['PGPORT'] = config["port"].to_s if config["port"]
ENV['PGPASSWORD'] = config["password"].to_s if config["password"]
exec(find_cmd('psql'), '-U', config["username"], config["database"])
exec(find_cmd('psql'), config["database"])
when "sqlite"
exec(find_cmd('sqlite'), config["database"])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册