diff options
Diffstat (limited to 'cmd/dump.go')
-rw-r--r-- | cmd/dump.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cmd/dump.go b/cmd/dump.go index 2f42bb8d6d..588a2175de 100644 --- a/cmd/dump.go +++ b/cmd/dump.go @@ -126,10 +126,7 @@ func runDump(ctx *cli.Context) error { var sessionAbsPath string if setting.SessionConfig.Provider == "file" { - if len(setting.SessionConfig.ProviderConfig) == 0 { - setting.SessionConfig.ProviderConfig = "data/sessions" - } - sessionAbsPath, _ = filepath.Abs(setting.SessionConfig.ProviderConfig) + sessionAbsPath = setting.SessionConfig.ProviderConfig } if err := zipAddDirectoryExclude(z, "data", setting.AppDataPath, sessionAbsPath); err != nil { log.Fatalf("Failed to include data directory: %v", err) |