Skip to content

Commit

Permalink
Update server.go
Browse files Browse the repository at this point in the history
Put args = cmdArgs.kopiaCacheArgs(args, cmdArgs.CacheDirectory) back to original location
  • Loading branch information
r4rajat authored Sep 5, 2024
1 parent 0a7848f commit 7151d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/kopia/command/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ type ServerStartCommandArgs struct {
func ServerStart(cmdArgs ServerStartCommandArgs) []string {
args := commonArgs(&CommandArgs{ConfigFilePath: cmdArgs.ConfigFilePath, LogDirectory: cmdArgs.LogDirectory})

args = cmdArgs.kopiaCacheArgs(args, cmdArgs.CacheDirectory)

if cmdArgs.AutoGenerateCert {
args = args.AppendLoggable(serverSubCommand, startSubCommand, tlsGenerateCertFlag)
} else {
Expand All @@ -60,6 +58,8 @@ func ServerStart(cmdArgs ServerStartCommandArgs) []string {
args = args.AppendLoggableKV(serverControlUsernameFlag, cmdArgs.ServerUsername)
args = args.AppendRedactedKV(serverControlPasswordFlag, cmdArgs.ServerPassword)

args = cmdArgs.kopiaCacheArgs(args, cmdArgs.CacheDirectory)

if cmdArgs.ReadOnly {
args = args.AppendLoggable(readOnlyFlag)
}
Expand Down

0 comments on commit 7151d58

Please sign in to comment.