Fix default path
This commit is contained in:
parent
567dc58d9b
commit
d81776fef8
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