Specifying a custom script

If the file update process does not perform all the required actions, you can specify scripts that are run before or after the update process. To write custom scripts, you must have previous knowledge of Bourne shell scripts.

To specify a custom script:

  1. Write the shell script.
  2. Save the shell script with one of these names:
    • before_update.sh, to have the script run before the file update process
    • after_update.sh, to have the script run after the file update process
    • on_failure.sh, to have the script run if the file update process fails
  3. Test the shell script in a non-production environment.
  4. Copy the script to the deploy_scripts subdirectory of the appropriate file update. For example, to specify custom scripts for the 5-0-21-0 update, put the script in update repository\update.5-0-21-0.dir\deploy_scripts. If no such directory exists, create one.
The scripts are copied to the clock and executed when the fileupdate thread runs. For more information on clock threads, see Clock Process Threads.