Fix default path

This commit is contained in:
Meutel 2019-09-28 11:58:45 +02:00
parent 567dc58d9b
commit d81776fef8

View File

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