Execution Order
This section details the execution order of Custom Scripts.
New install Scenario
- Pre-install: Script to be executed before new installation of Connect:Direct (CD).
- Post-install: Script to be executed after new installation of Connect:Direct (CD) completes.
Note:
- If the pre-install script in the bundle fails during execution, the Connect:Direct (CD) installation will NOT be triggered. Refer to the agent logs for further debugging.
- If the post-install script in the bundle fails during execution, Connect:Direct (CD) will not be uninstalled.
Upgrade Scenario
- Pre-upgrade: Script to be executed before CD upgrade.
- Post-upgrade: Script to be executed after CD upgrade completes.
Note:
- If the pre-upgrade script selected with the deployment job fails during execution, the CD upgrade will NOT be triggered, and the job will fail. Refer to the agent logs for debugging.
- If the post-upgrade script has been selected with the deployment job, it will be executed after a successful CD upgrade. If it fails, the upgrade will NOT be rolled back. However, the upgrade job on the Control Center side will be shown as failed if the post-upgrade script fails.
Best Practices
- Ensure that your custom scripts have sufficient logging to troubleshoot any issues during execution. Refer to the script execution logs for more details.
- Execute and verify the script separately to avoid execution failures during installation or upgrade.