mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 08:19:15 +08:00
feat: 证书推送自动创建文件夹 (#5501)
Refs https://github.com/1Panel-dev/1Panel/issues/3523
This commit is contained in:
parent
4460329d2d
commit
0bdeba7288
@ -129,8 +129,9 @@ func (w WebsiteSSLService) Create(create request.WebsiteSSLCreate) (request.Webs
|
||||
DisableCNAME: create.DisableCNAME,
|
||||
}
|
||||
if create.PushDir {
|
||||
if !files.NewFileOp().Stat(create.Dir) {
|
||||
return res, buserr.New(constant.ErrLinkPathNotFound)
|
||||
fileOP := files.NewFileOp()
|
||||
if !fileOP.Stat(create.Dir) {
|
||||
_ = fileOP.CreateDir(create.Dir, 0755)
|
||||
}
|
||||
websiteSSL.Dir = create.Dir
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user