Fix CACertPath stripping trailing path components

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pull/6974/head
Brad Davidson 2 years ago committed by Brad Davidson
parent 0c302f4341
commit 23d98cec22

@ -293,7 +293,7 @@ func rotateCA(app *cli.Context, cfg *cmds.Server, sync *cmds.CertRotateCA) error
// Set up dummy server config for reading new bootstrap data from disk.
tmpServer := &config.Control{
Runtime: config.NewRuntime(nil),
DataDir: filepath.Dir(sync.CACertPath),
DataDir: sync.CACertPath,
}
deps.CreateRuntimeCertFiles(tmpServer)

Loading…
Cancel
Save