mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-20 09:15:19 +01:00
Merge pull request #1109 from ywk253100/161117_prepare
mkdir if it does not exist
This commit is contained in:
commit
4bf727c7e1
@ -175,6 +175,8 @@ delfile(config_dir)
|
|||||||
|
|
||||||
if protocol == "https":
|
if protocol == "https":
|
||||||
target_cert_path = os.path.join(cert_dir, os.path.basename(cert_path))
|
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)
|
||||||
shutil.copy2(cert_path,target_cert_path)
|
shutil.copy2(cert_path,target_cert_path)
|
||||||
target_cert_key_path = os.path.join(cert_dir, os.path.basename(cert_key_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)
|
shutil.copy2(cert_key_path,target_cert_key_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user