避免频繁执行acme

pull/109/head
midoks 3 years ago
parent 3f69f06cea
commit 798e51a1c1
  1. 6
      class/core/site_api.py

@ -599,7 +599,11 @@ class site_api:
if not os.path.exists(acem): if not os.path.exists(acem):
return mw.returnJson(False, '尝试自动安装ACME失败,请通过以下命令尝试手动安装<p>安装命令: curl https://get.acme.sh | sh</p>' + acem) return mw.returnJson(False, '尝试自动安装ACME失败,请通过以下命令尝试手动安装<p>安装命令: curl https://get.acme.sh | sh</p>' + acem)
force_bool = False # 避免频繁执行
checkAcmeRun = mw.execShell('ps -ef|grep acme.sh |grep -v grep')
if checkAcmeRun[0] != '':
return mw.returnJson(False, '正在申请或更新SSL中...')
if force == 'true': if force == 'true':
force_bool = True force_bool = True

Loading…
Cancel
Save