Merge pull request #1110 from ywk253100/161117_prepare_2

Make cert dir
This commit is contained in:
Wenkai Yin 2016-11-17 16:35:46 +08:00 committed by GitHub
commit 05e9a17d5a

View File

@ -175,8 +175,8 @@ delfile(config_dir)
if protocol == "https":
target_cert_path = os.path.join(cert_dir, os.path.basename(cert_path))
if not os.path.exists(target_cert_path):
os.makedirs(target_cert_path)
if not os.path.exists(cert_dir):
os.makedirs(cert_dir)
shutil.copy2(cert_path,target_cert_path)
target_cert_key_path = os.path.join(cert_dir, os.path.basename(cert_key_path))
shutil.copy2(cert_key_path,target_cert_key_path)