mirror of https://github.com/wulabing/Xray_onekey
1.0.7 修复 自动更新证书 Nginx 重启异常
parent
178b295005
commit
804841caa4
|
@ -539,11 +539,11 @@ acme_cron_update(){
|
||||||
if [[ "${ID}" == "centos" ]];then
|
if [[ "${ID}" == "centos" ]];then
|
||||||
# sed -i "/acme.sh/c 0 3 * * 0 \"/root/.acme.sh\"/acme.sh --cron --home \"/root/.acme.sh\" \
|
# sed -i "/acme.sh/c 0 3 * * 0 \"/root/.acme.sh\"/acme.sh --cron --home \"/root/.acme.sh\" \
|
||||||
# &> /dev/null" /var/spool/cron/root
|
# &> /dev/null" /var/spool/cron/root
|
||||||
sed -i "/acme.sh/c 0 3 * * 0 bash ${ssl_update}"
|
sed -i "/acme.sh/c 0 3 * * 0 bash ${ssl_update_file}"
|
||||||
else
|
else
|
||||||
# sed -i "/acme.sh/c 0 3 * * 0 \"/root/.acme.sh\"/acme.sh --cron --home \"/root/.acme.sh\" \
|
# 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
|
# &> /dev/null" /var/spool/cron/crontabs/root
|
||||||
sed -i "/acme.sh/c 0 3 * * 0 bash ${ssl_update}"
|
sed -i "/acme.sh/c 0 3 * * 0 bash ${ssl_update_file}"
|
||||||
fi
|
fi
|
||||||
judge "cron 计划任务更新"
|
judge "cron 计划任务更新"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue