From 69ef390ce4e1c3f394f9cd897d3fa0499f879e0f Mon Sep 17 00:00:00 2001 From: Kenny Yang <45874689+shakenny@users.noreply.github.com> Date: Thu, 23 May 2024 09:23:03 +0800 Subject: [PATCH] Update auto_cert_bot.sh --- vps/auto_cert_bot.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vps/auto_cert_bot.sh b/vps/auto_cert_bot.sh index d3ab25f..f5aca33 100644 --- a/vps/auto_cert_bot.sh +++ b/vps/auto_cert_bot.sh @@ -4,11 +4,11 @@ cd ~ || exit # 下载并使脚本可执行 -curl -O https://raw.githubusercontent.com/kejilion/sh/main/auto_cert_renewal.sh -chmod +x auto_cert_renewal.sh +curl -O ~/.auto_cert_renewal.sh https://raw.githubusercontent.com/kejilion/sh/main/auto_cert_renewal.sh +chmod +x ~/.auto_cert_renewal.sh # 设置定时任务字符串 -cron_job="0 0 * * * ~/auto_cert_renewal.sh" +cron_job="0 0 * * * ~/.auto_cert_renewal.sh" # 检查是否存在相同的定时任务 existing_cron=$(crontab -l 2>/dev/null | grep -F "$cron_job") @@ -19,4 +19,4 @@ if [ -z "$existing_cron" ]; then echo "续签任务已添加" else echo "续签任务已存在,无需添加" -fi \ No newline at end of file +fi