mirror of
https://github.com/stashapp/stash.git
synced 2026-02-25 00:33:03 +01:00
Default database backup to same directory as database (#5250)
This commit is contained in:
parent
a17199ba21
commit
71e39e5cb8
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue