Skip to content

Commit afbb83e

Browse files
authored
certs-dir value was ignored because of wrong variable assigning (#362)
1 parent b599968 commit afbb83e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/console/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ func startServer(ctx *cli.Context) error {
108108
restapi.Port = fmt.Sprintf("%v", ctx.Int("port"))
109109

110110
// Set all certs and CAs directories.
111-
globalCertsDir, _ := certs.NewConfigDirFromCtx(ctx, "certs-dir", certs.DefaultCertsDir.Get)
112-
certs.GlobalCertsCADir = &certs.ConfigDir{Path: filepath.Join(globalCertsDir.Get(), certs.CertsCADir)}
111+
certs.GlobalCertsDir, _ = certs.NewConfigDirFromCtx(ctx, "certs-dir", certs.DefaultCertsDir.Get)
112+
certs.GlobalCertsCADir = &certs.ConfigDir{Path: filepath.Join(certs.GlobalCertsDir.Get(), certs.CertsCADir)}
113113
logger.FatalIf(certs.MkdirAllIgnorePerm(certs.GlobalCertsCADir.Get()), "Unable to create certs CA directory at %s", certs.GlobalCertsCADir.Get())
114114

115115
// load all CAs from ~/.console/certs/CAs

0 commit comments

Comments
 (0)