Compare commits

..

No commits in common. "ed14e1c1be43e9a80282c4f10d2418eacec51c6c" and "e5c418e5e1a8f5772e6e68237c80ef25670581c5" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ setup_update_script() {
[ -x /usr/local/bin/upconfig.sh ] || { log "ERROR" "upconfig.sh 设置权限失败"; exit 1; }
log "DEBUG" "配置 crontab 任务..."
(crontab -l 2>/dev/null | grep -v "upconfig.sh"; echo "* * * * * bash /usr/local/bin/upconfig.sh > /dev/null 2>&1") | crontab - || log "WARN" "crontab 配置失败"
(crontab -l 2>/dev/null | grep -v "upconfig.sh"; echo "* * * * * /usr/local/bin/upconfig.sh") | crontab - || log "WARN" "crontab 配置失败"
}
# 下载配置文件

View File

@ -1,5 +1,5 @@
#!/bin/bash
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
# 定义变量
REMOTE_URL="https://sub.aaa.team/config-66ca38b4bd8d"
LOCAL_CONFIG="/etc/sing-box/config.json"