mirror of https://github.com/stashapp/stash.git
Default database backup to same directory as database (#5250)
This commit is contained in:
parent
a17199ba21
commit
71e39e5cb8
|
@ -702,7 +702,8 @@ func (i *Config) GetBackupDirectoryPath() string {
|
|||
func (i *Config) GetBackupDirectoryPathOrDefault() string {
|
||||
ret := i.GetBackupDirectoryPath()
|
||||
if ret == "" {
|
||||
return i.GetConfigPath()
|
||||
// #4915 - default to the same directory as the database
|
||||
return filepath.Dir(i.GetDatabasePath())
|
||||
}
|
||||
|
||||
return ret
|
||||
|
|
Loading…
Reference in New Issue