mt4_adopt
Records file hashes of an existing terminal's bundle into the manifest, enabling mt4_deploy to manage it without errors. Changes nothing, requires all bundle files present.
Instructions
Take an already-running terminal under mt4ctl management (first cutover).
On a terminal whose strategies were NOT placed by mt4ctl, the first mt4_deploy
refuses (every existing file is an unmanaged-overwrite). Run mt4_adopt once
first: it records the bundle's footprint into the manifest at the files' current
on-disk hashes, so deploy can reconcile from there.
This is RECORDS-ONLY: it changes NOTHING — no upload, no restart, no preview. It is bundle-scoped (foreign files like a watchdog's chart stay foreign) and requires every bundle file to already be present on the host (the premise is the farm runs this bundle; a missing file is refused). A live terminal needs confirm=true.
bundle is a LOCAL directory (the same layout mt4_deploy takes). After adopt,
run mt4_deploy <terminal> <bundle> --dry-run to confirm a clean "no changes".
Args: terminal: terminal id. bundle: local bundle directory path. confirm: must be true to adopt a terminal tagged env=live.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| terminal | Yes | ||
| bundle | Yes | ||
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |