Execution Order

This section details the execution order of Custom Scripts.

New install Scenario

  1. Pre-install: Script to be executed before new installation of Connect:Direct (CD).
  2. 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

  1. Pre-upgrade: Script to be executed before CD upgrade.
  2. Post-upgrade: Script to be executed after CD upgrade completes.
Note:
  1. 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.
  2. 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.