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