Update site_api.py

pull/267/head
midoks 3 years ago
parent 5c56dc7b24
commit dbca385d90
  1. 11
      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"')
# 写入配置文件

Loading…
Cancel
Save