From 8523db5427a405e2c5ec9bea574cc4b28f24a417 Mon Sep 17 00:00:00 2001 From: Wenkai Yin Date: Thu, 17 Nov 2016 16:14:22 +0800 Subject: [PATCH] make cert dir --- make/prepare | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make/prepare b/make/prepare index 107f65405..4e777ce0e 100755 --- a/make/prepare +++ b/make/prepare @@ -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)