Linux Package Editor Reference
38
Creating Linux Packages
Requires
PreReq
Interpreter
Config
No Event
PreInstall
PostInstall
PreUninstall
PostUninstall
Verification
z
Event Flag
Specify the event that will cause the trigger to occur:
Trigger Install
Runs the trigger script when the trigger package specified above is installed or
upgraded, or when that package is already installed, and the current package is
installed or upgraded.
Trigger Uninstall
Runs the trigger script when the trigger package specified above is uninstalled,
or when that package is already installed, and the current package is
uninstalled.
Trigger Post-Uninstall
Runs the trigger script only when the trigger package specified above is
uninstalled.
z
Trigger Script Name
Select a script to run when the trigger event occurs. This drop-down list contains
any trigger scripts that you have added to this package. To create a new script, click
New. The New Script dialog box appears.
To add a trigger script
Complete the New Script dialog box:
1. In New Script Name, enter a name for the script.
2. Select the script type:
WiseScript (.wsl). This is a shell script format file.
Perl Script (.pl).
Bourne Shell (.sh).
Any other script for which there is an interpreter on the Linux computer.
3. Click OK on the New Script dialog box and the Define Trigger package dialog box.
The script is added to the install events in Script Editor. There, you can create and
edit the script.
4. In Script Editor, select the trigger script from the Install Event drop-down list.
5. Create the script in the script window:
If you created a WiseScript, use the script actions that are provided in Script
Editor.