File package deployment scripts

The rsdeploy agent on each host launches scripts to install or uninstall a file package on each host. These scripts are defined in the deployment.xml configuration file, and must be included in the file package.

The install and uninstall scripts can use the environment variables defined in the deployment.xml file. They can also use the following variables:

Linux/UNIX environments:
  • EGO_TOP

  • $SOAM_HOME

  • $EGO_BINDIR

  • $EGO_LIBDIR

  • $EGO_SERVERDIR

  • $EGO_LOCAL_CONFDIR

Windows environments:
  • EGO_TOP

  • %SOAM_HOME%

  • %EGO_BINDIR%

  • %EGO_LIBDIR%

  • %EGO_SERVERDIR%

  • %EGO_LOCAL_CONFDIR%

The scripts should assume that all the extracted files will match the file paths in the file package (under the staging directory before being compressed). Using the script, the files can be copied to any location on the local hard disk or any location defined by a variable. The execution user for the script is the user assigned to the consumer specified in the rsdeploy install or rsdeploy uninstall command.

To save disk space, the install script should remove any unnecessary files from the deploy location; however, it must not remove the deployment.xml and uninstall scripts, as these files are required to uninstall the file package.

Related tasks
Create a file package