From e474bfdfa7d9b7e63a819c7809c8e3c482c63c0f Mon Sep 17 00:00:00 2001 From: yexinhao Date: Sun, 5 Feb 2023 18:59:18 +0800 Subject: [PATCH] feat: test1111 --- docker/update.sh | 14 +++++++------- main.py | 1 - 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/docker/update.sh b/docker/update.sh index 2477fa3..2d70339 100644 --- a/docker/update.sh +++ b/docker/update.sh @@ -2,13 +2,13 @@ set -u -#if [ "${ACME_ENABLED:=true}" = "true" ]; then -# # 使用acme获取/更新证书 -# ${ACME_HOME}/acme.sh ${ACME_PARAMS:-} \ -# --force --issue --cert-home ${CERT_HOME} \ -# -d ${ACME_DOMAIN} -d *.${ACME_DOMAIN} \ -# --dns ${ACME_DNS_TYPE} -#fi +if [ "${ACME_ENABLED:=true}" = "true" ]; then + # 使用acme获取/更新证书 + ${ACME_HOME}/acme.sh ${ACME_PARAMS:-} \ + --force --issue --cert-home ${CERT_HOME} \ + -d ${ACME_DOMAIN} -d *.${ACME_DOMAIN} \ + --dns ${ACME_DNS_TYPE} +fi # 添加刷新url echo "${PUSH_URLS:-}" | tr ',' '\n' > ${WORK_DIR}/urls.txt diff --git a/main.py b/main.py index 55010ad..4be6ae0 100644 --- a/main.py +++ b/main.py @@ -196,5 +196,4 @@ if __name__ == "__main__": run_purge_url(SECRETID, SECRETKEY, my_domain, config.URLS_FILE) # ecdn是全球加速服务,与CDN不同,本账号没有开通该功能 # run_config_ecdn(SECRETID, SECRETKEY, my_domain, cert_id) - print("成功执行本次CDN更新任务!")