Compare commits

...

2 Commits

Author SHA1 Message Date
Lsmoisu
ed14e1c1be
Update upconfig.sh 2025-03-09 11:38:51 +08:00
Lsmoisu
8b61a4aede
Update install.sh 2025-03-09 11:38:23 +08:00
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 "* * * * * /usr/local/bin/upconfig.sh") | crontab - || log "WARN" "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 配置失败"
}
# 下载配置文件

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"