diff --git a/install.sh b/install.sh index 9e90a6d..6b5eb62 100644 --- a/install.sh +++ b/install.sh @@ -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 计划任务更新" }