diff --git a/class/core/config_api.py b/class/core/config_api.py index 1f479e99e..512b10dc8 100755 --- a/class/core/config_api.py +++ b/class/core/config_api.py @@ -584,13 +584,13 @@ class config_api: siteName = mw.readFile(bind_domain).strip() - src_letpath = mw.getServerDir() + '/web_conf/letsencrypt/' + siteName + src_path = mw.getServerDir() + '/web_conf/letsencrypt/' + siteName - dst_letpath = mw.getRunDir() + '/ssl' - dst_csrpath = dst_letpath + '/cert.pem' - dst_keypath = dst_letpath + '/private.pem' + dst_path = mw.getRunDir() + '/ssl/nginx' + dst_csrpath = dst_path + '/cert.pem' + dst_keypath = dst_path + '/private.pem' - if os.path.exists(src_letpath) or os.path.exists(dst_csrpath): + if os.path.exists(src_path) or os.path.exists(dst_path): if os.path.exists(src_letpath): mw.execShell('rm -rf ' + src_letpath) if os.path.exists(dst_csrpath):