Stop deploy from overwriting manual FORCE_CLOSE settings.

Apply force-close defaults only when keys are missing so system-settings toggles survive pull_and_restart.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-15 11:54:31 +08:00
parent 1e765f4b2b
commit 8d2da921ee
3 changed files with 54 additions and 12 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ git pull
echo ">>> sync common trading env (binance + okx missing keys)"
python3 scripts/sync_common_trading_env.py "${DRY[@]}"
echo ">>> force-close policy: gate=ON, binance/okx=OFF"
echo ">>> force-close defaults only if missing (never overwrite manual)"
python3 scripts/sync_common_trading_env.py --apply-force-close-policy "${DRY[@]}"
if [[ ${#DRY[@]} -gt 0 ]]; then