forked from TrueCloudLab/certificates
Merge pull request #794 from smallstep/create-db-folder
Create the db directory on step ca init
This commit is contained in:
commit
262375577a
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue