Create the db directory on step ca init

This commit is contained in:
Carl Tashian 2022-01-12 12:35:37 -08:00
parent 57f9e54151
commit 9848caf49f

View file

@ -978,6 +978,7 @@ func (p *PKI) Save(opt ...ConfigOption) error {
} }
if cfg.DB != nil { if cfg.DB != nil {
os.MkdirAll(cfg.DB.DataSource, 0700)
ui.PrintSelected("Database folder", cfg.DB.DataSource) ui.PrintSelected("Database folder", cfg.DB.DataSource)
} }
if cfg.Templates != nil { if cfg.Templates != nil {