updates
Former-commit-id: 987a3c3c697fb3d529634c1a8f66dde0f450f5a1 [formerly ee09941b44acdf0700d756d72e225a161471dcd2] [formerly e0243da57fccd6a4765a2c16e4ee45356d76062f [formerly f2b880dccfd3304ad91d2ff2b89ccf7f4f7e9d7b]] Former-commit-id: 4a1e27fbe8a524a0eb90f7ae157253ba2d6d29a4 [formerly 66a205c72125cf1666468a21097926196214bb0b] Former-commit-id: 3b974ca50af3176bcc6497bbda18deef5347cbe5
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user