Fix CACertPath stripping trailing path components

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pull/6964/head
Brad Davidson 2023-02-13 22:43:22 +00:00 committed by Brad Davidson
parent 2fa8a7ef43
commit beb9c727c0
1 changed files with 1 additions and 1 deletions

View File

@ -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)