Skip to content

Commit

Permalink
Use DB password from environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
bittersweet committed Oct 11, 2015
1 parent c13aed9 commit 5695a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notifilter.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func main() {
}
go listenToUDP(conn)

pgStr := fmt.Sprintf("host=%s user=%s dbname=%s sslmode=disable", C.DBHost, C.DBUser, C.DBName)
pgStr := fmt.Sprintf("host=%s user=%s password=%s dbname=%s sslmode=disable", C.DBHost, C.DBUser, C.DBPassword, C.DBName)
db, err = sqlx.Connect("postgres", pgStr)
if err != nil {
log.Fatal("DB Open()", err)
Expand Down

0 comments on commit 5695a77

Please sign in to comment.