Merge pull request #794 from smallstep/create-db-folder

Create the db directory on step ca init
This commit is contained in:
Carl Tashian 2022-01-18 16:11:07 -08:00 committed by GitHub
commit 262375577a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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