From dbca385d9076727cecfea3c080b91deb43dcb3c2 Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 17 Nov 2022 14:27:11 +0800 Subject: [PATCH] Update site_api.py --- class/core/site_api.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/class/core/site_api.py b/class/core/site_api.py index 51faadd4f..38269c67e 100755 --- a/class/core/site_api.py +++ b/class/core/site_api.py @@ -764,9 +764,9 @@ class site_api: if not os.path.exists(dst_letpath): mw.execShell('mkdir -p ' + dst_letpath) - mw.execShell('ln -sf "' + src_csrpath + '" "' + dst_csrpath + '"') - mw.execShell('ln -sf "' + src_keypath + '" "' + dst_keypath + '"') - mw.execShell('echo "let" > "' + dst_letpath + '/README"') + mw.buildSoftLink(src_csrpath, dst_csrpath) + mw.buildSoftLink(src_keypath, dst_keypath) + mw.execShell('echo "lets" > "' + dst_letpath + '/README"') # 写入配置文件 result = self.setSslConf(siteName) @@ -906,8 +906,9 @@ class site_api: if not os.path.exists(dst_path): mw.execShell("mkdir -p " + dst_path) - mw.execShell('ln -sf "' + src_cert + '" "' + dst_cert + '"') - mw.execShell('ln -sf "' + src_key + '" "' + dst_key + '"') + + mw.buildSoftLink(src_cert, dst_cert, True) + mw.buildSoftLink(src_key, dst_key, True) mw.execShell('echo "acme" > "' + dst_path + '/README"') # 写入配置文件