mirror of https://github.com/wulabing/Xray_onekey
1.0.5 关闭证书自动更新
parent
707fd51d19
commit
e28a258b00
10
install.sh
10
install.sh
|
@ -24,7 +24,7 @@ OK="${Green}[OK]${Font}"
|
||||||
Error="${Red}[错误]${Font}"
|
Error="${Red}[错误]${Font}"
|
||||||
|
|
||||||
# 版本
|
# 版本
|
||||||
shell_version="1.0.4"
|
shell_version="1.0.5"
|
||||||
shell_mode="None"
|
shell_mode="None"
|
||||||
version_cmp="/tmp/version_cmp.tmp"
|
version_cmp="/tmp/version_cmp.tmp"
|
||||||
v2ray_conf_dir="/etc/v2ray"
|
v2ray_conf_dir="/etc/v2ray"
|
||||||
|
@ -530,11 +530,11 @@ nginx_process_disabled(){
|
||||||
#}
|
#}
|
||||||
acme_cron_update(){
|
acme_cron_update(){
|
||||||
if [[ "${ID}" == "centos" ]];then
|
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\" \
|
sed -i "/acme.sh/c 0 3 * * 0 \"/root/.acme.sh\"/acme.sh --cron --home \"/root/.acme.sh\" \
|
||||||
&> /dev/null && systemctl start nginx" /var/spool/cron/root
|
&> /dev/null" /var/spool/cron/root
|
||||||
else
|
else
|
||||||
sed -i "/acme.sh/c 0 3 * * 0 systemctl stop nginx && \"/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 && systemctl start nginx" /var/spool/cron/crontabs/root
|
&> /dev/null" /var/spool/cron/crontabs/root
|
||||||
fi
|
fi
|
||||||
judge "cron 计划任务更新"
|
judge "cron 计划任务更新"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue