mirror of https://github.com/mack-a/v2ray-agent
fix(脚本): 修改定时任务错误替换的问题
parent
caaa2c971f
commit
ffb52e04ef
|
@ -828,7 +828,8 @@ handleNginx() {
|
||||||
installCronTLS() {
|
installCronTLS() {
|
||||||
echoContent skyBlue "\n进度 $1/${totalProgress} : 添加定时维护证书"
|
echoContent skyBlue "\n进度 $1/${totalProgress} : 添加定时维护证书"
|
||||||
crontab -l >/etc/v2ray-agent/backup_crontab.cron
|
crontab -l >/etc/v2ray-agent/backup_crontab.cron
|
||||||
sed '/v2ray-agent/d;/acme.sh/d' /etc/v2ray-agent/backup_crontab.cron >/etc/v2ray-agent/backup_crontab.cron
|
local historyCrontab=$(sed '/v2ray-agent/d;/acme.sh/d' /etc/v2ray-agent/backup_crontab.cron)
|
||||||
|
echo "${historyCrontab}" >/etc/v2ray-agent/backup_crontab.cron
|
||||||
echo "30 1 * * * /bin/bash /etc/v2ray-agent/install.sh RenewTLS >> /etc/v2ray-agent/crontab_tls.log 2>&1" >>/etc/v2ray-agent/backup_crontab.cron
|
echo "30 1 * * * /bin/bash /etc/v2ray-agent/install.sh RenewTLS >> /etc/v2ray-agent/crontab_tls.log 2>&1" >>/etc/v2ray-agent/backup_crontab.cron
|
||||||
crontab /etc/v2ray-agent/backup_crontab.cron
|
crontab /etc/v2ray-agent/backup_crontab.cron
|
||||||
echoContent green "\n ---> 添加定时维护证书成功"
|
echoContent green "\n ---> 添加定时维护证书成功"
|
||||||
|
@ -3779,7 +3780,7 @@ menu() {
|
||||||
cd "$HOME" || exit
|
cd "$HOME" || exit
|
||||||
echoContent red "\n=============================================================="
|
echoContent red "\n=============================================================="
|
||||||
echoContent green "作者:mack-a"
|
echoContent green "作者:mack-a"
|
||||||
echoContent green "当前版本:v2.4.39"
|
echoContent green "当前版本:v2.4.40"
|
||||||
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
||||||
echoContent green "描述:八合一共存脚本\c"
|
echoContent green "描述:八合一共存脚本\c"
|
||||||
showInstallStatus
|
showInstallStatus
|
||||||
|
|
Loading…
Reference in New Issue