diff options
Diffstat (limited to 'internal/conf/conf.go')
-rw-r--r-- | internal/conf/conf.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/conf/conf.go b/internal/conf/conf.go index 63df2c8e..0850962e 100644 --- a/internal/conf/conf.go +++ b/internal/conf/conf.go @@ -182,6 +182,15 @@ func Init(customConf string) error { Repository.Root = ensureAbs(Repository.Root) Repository.Upload.TempPath = ensureAbs(Repository.Upload.TempPath) + // ******************************* + // ----- Database settings ----- + // ******************************* + + if err = File.Section("database").MapTo(&Database); err != nil { + return errors.Wrap(err, "mapping [database] section") + } + Database.Path = ensureAbs(Database.Path) + handleDeprecated() // TODO |