feature/build_branch #7
4
main.go
4
main.go
@ -32,13 +32,13 @@ func ReadConfig() (*bouquins.Conf, error) {
|
||||
}
|
||||
// default values
|
||||
if conf.CalibrePath == "" {
|
||||
conf.CalibrePath = "."
|
||||
conf.CalibrePath = "./data"
|
||||
}
|
||||
if conf.DbPath == "" {
|
||||
conf.DbPath = conf.CalibrePath + "/metadata.db"
|
||||
}
|
||||
if conf.UserDbPath == "" {
|
||||
conf.UserDbPath = "./users.db"
|
||||
conf.UserDbPath = "./data/users.db"
|
||||
}
|
||||
if conf.BindAddress == "" {
|
||||
conf.BindAddress = ":9000"
|
||||
|
Loading…
Reference in New Issue
Block a user