feature/build_branch #7

Manually merged
meutel merged 3 commits from feature/build_branch into master 2019-09-28 10:06:22 +00:00
Showing only changes of commit d81776fef8 - Show all commits

View File

@ -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"