fix: sync脚本不再创建scripts/下cron脚本副本(配合文件居住宪法,副本一律自动归档)
This commit is contained in:
@@ -24,14 +24,10 @@ for lib in mofin_db.py mo_data.py; do
|
||||
fi
|
||||
done
|
||||
|
||||
# ── cron 脚本分叉副本(scripts/ 旧副本)→ 硬链到 deploy/profile-scripts canonical ──
|
||||
for f in verify_reassess_pipeline.py batch_reassess.py stale_detector.py fix_gateway_port.py morning_health_check.py candidate_filter.py per_stock_reassess.py; do
|
||||
[ -f "$SRC/$f" ] && ln -f "$SRC/$f" "$ROOT/scripts/$f" 2>/dev/null || true
|
||||
done
|
||||
# price_monitor 还有 root 和 web-dashboard 两个副本
|
||||
[ -f "$SRC/price_monitor.py" ] && ln -f "$SRC/price_monitor.py" "$ROOT/scripts/price_monitor.py" 2>/dev/null || true
|
||||
[ -f "$SRC/price_monitor.py" ] && ln -f "$SRC/price_monitor.py" "$ROOT/price_monitor.py" 2>/dev/null || true
|
||||
[ -f "$SRC/price_monitor.py" ] && ln -f "$SRC/price_monitor.py" "/home/hmo/web-dashboard/price_monitor.py" 2>/dev/null || true
|
||||
# ── cron 脚本:scripts/ 不养副本!──
|
||||
# 2026-07-22 起:影子副本一律归档(archive/YYYYMMDD-*),sync 不再创建任何
|
||||
# scripts/ 下的 cron 脚本副本。cron 只跑 profile-scripts 目录(本脚本维护的硬链)。
|
||||
# 库文件(被 import 的 mofin_db/mo_data)例外——按红线#6 维护根目录 canonical 的硬链:
|
||||
|
||||
echo "synced $count scripts (hardlink)"
|
||||
mkdir -p /home/hmo/MoFin/gateway/logs
|
||||
|
||||
Reference in New Issue
Block a user