1.0.7 修复 自动更新证书 Nginx 重启异常

pull/171/head
wulabing 2020-02-07 15:16:23 +08:00
parent 804841caa4
commit c4b3e8b33c
1 changed files with 2 additions and 2 deletions

View File

@ -539,11 +539,11 @@ acme_cron_update(){
if [[ "${ID}" == "centos" ]];then
# sed -i "/acme.sh/c 0 3 * * 0 \"/root/.acme.sh\"/acme.sh --cron --home \"/root/.acme.sh\" \
# &> /dev/null" /var/spool/cron/root
sed -i "/acme.sh/c 0 3 * * 0 bash ${ssl_update_file}"
sed -i "/acme.sh/c 0 3 * * 0 bash ${ssl_update_file}" /var/spool/cron/root
else
# sed -i "/acme.sh/c 0 3 * * 0 \"/root/.acme.sh\"/acme.sh --cron --home \"/root/.acme.sh\" \
# &> /dev/null" /var/spool/cron/crontabs/root
sed -i "/acme.sh/c 0 3 * * 0 bash ${ssl_update_file}"
sed -i "/acme.sh/c 0 3 * * 0 bash ${ssl_update_file}" /var/spool/cron/crontabs/root
fi
judge "cron 计划任务更新"
}