1.0.5 关闭证书自动更新

pull/163/head
wulabing 2020-02-02 10:08:39 +08:00
parent 707fd51d19
commit e28a258b00
1 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@ OK="${Green}[OK]${Font}"
Error="${Red}[错误]${Font}"
# 版本
shell_version="1.0.4"
shell_version="1.0.5"
shell_mode="None"
version_cmp="/tmp/version_cmp.tmp"
v2ray_conf_dir="/etc/v2ray"
@ -530,11 +530,11 @@ nginx_process_disabled(){
#}
acme_cron_update(){
if [[ "${ID}" == "centos" ]];then
sed -i "/acme.sh/c 0 3 * * 0 systemctl stop nginx && \"/root/.acme.sh\"/acme.sh --cron --home \"/root/.acme.sh\" \
&> /dev/null && systemctl start nginx" /var/spool/cron/root
sed -i "/acme.sh/c 0 3 * * 0 \"/root/.acme.sh\"/acme.sh --cron --home \"/root/.acme.sh\" \
&> /dev/null" /var/spool/cron/root
else
sed -i "/acme.sh/c 0 3 * * 0 systemctl stop nginx && \"/root/.acme.sh\"/acme.sh --cron --home \"/root/.acme.sh\" \
&> /dev/null && systemctl start nginx" /var/spool/cron/crontabs/root
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
fi
judge "cron 计划任务更新"
}