cacert文件夹创建

This commit is contained in:
duandongmei
2019-06-22 18:18:57 +08:00
parent 24ff189f8d
commit 8910c864ef
2 changed files with 4 additions and 4 deletions

View File

@@ -935,9 +935,9 @@ public class PxyObjKeyringController extends BaseController {
.getResource(File.separator + "shell" + File.separator + Constants.CA_CERT_FILE).getPath();
this.execShell("", "chmod", "+x", cacert);
logger.info(Constants.CA_CERT_FILE+"脚本分配可执行权限:" + "chmod" + " " + "+x" + " " + cacert);
resultDirPath = Thread.currentThread().getContextClassLoader()
.getResource(File.separator + Constants.CA_CERT_DIR).getPath();
FileUtils.createDirectory(Constants.CA_CERT_DIR);
resultDirPath = Constants.CA_CERT_DIR;
logger.info("证书列表解析结果目录"+resultDirPath);
this.execShell(cacert, certFilePath,resultDirPath);
logger.info("内置证书文件生成:"+cacert + " " + certFilePath+" "+resultDirPath);