This commit is contained in:
Henrique Dias committed 2017-07-18 08:11:42 +01:00
1 parent 87fc8db54f
commit f2b880dccf
4 files changed
+8 -9

No files matched your search

+2 -2
View File
@@ -80,13 +80,13 @@ func parse(c *caddy.Controller) ([]*filemanager.FileManager, error) {
}
// if there is a database path and it is not absolute,
// it will be relative to Caddy folder.
// it will be relative to ".caddy" folder.
if !filepath.IsAbs(database) && database != "" {
database = filepath.Join(path, database)
}
// If there is no database path on the settings,
// store one in .caddy/hugo/name.db.
// store one in .caddy/hugo/{name}.db.
if database == "" {
// The name of the database is the hashed value of a string composed
// by the host, address path and the baseurl of this File Manager