mirror of https://github.com/wulabing/Xray_onekey
parent
30658ec5b4
commit
cf8efbfecd
11
install.sh
11
install.sh
|
@ -326,6 +326,16 @@ start_process_systemd(){
|
|||
judge "V2ray 启动"
|
||||
}
|
||||
|
||||
acme_cron_update(){
|
||||
if [[ "${ID}" == "centos" ]];then
|
||||
sed -i "/acme.sh/c 0 0 * * 0 systemctl stop nginx && \"/root/.acme.sh\"/acme.sh --cron --home \"/root/.acme.sh\" \
|
||||
> /dev/null && systemctl start nginx " /var/spool/cron/root
|
||||
else
|
||||
sed -i "/acme.sh/c 0 0 * * 0 systemctl stop nginx && \"/root/.acme.sh\"/acme.sh --cron --home \"/root/.acme.sh\" \
|
||||
> /dev/null && systemctl start nginx " /var/spool/cron/crontabs/root
|
||||
fi
|
||||
judge "cron 计划任务更新"
|
||||
}
|
||||
show_information(){
|
||||
clear
|
||||
|
||||
|
@ -370,6 +380,7 @@ main(){
|
|||
|
||||
show_information
|
||||
start_process_systemd
|
||||
acme_cron_update
|
||||
}
|
||||
|
||||
main
|
||||
|
|
Loading…
Reference in New Issue