Linux Package Editor Reference
55
Script Actions
To complete the dialog box
z
File to Modify
Specify the file from which to delete a line.
z
Line
Enter the text that is in the line to delete. You can use any regular expression. If you
enter a substring, the entire line is deleted.
z
Delete All Occurrences
Mark this to delete all occurrences of the text in the file.
Delete User or Group
This script action deletes a user or group from the Linux computer. We recommend that
you add this action to the Post-Uninstall script so that a user or group is deleted only if
the uninstall is successful. This action is not available for Verification or Preflight scripts.
To complete the dialog box
z
User or Group
Select User or Group.
z
Name
Enter the name of the user or group to delete.
Else Statement
This action marks the beginning of a section of instructions to be executed when the
condition specified in the matching If Statement is false. It takes no parameters, and
selecting it from the Actions list inserts it directly into the script with no further dialog
boxes or prompts.
See also:
If Statement
on page 59
ElseIf Statement
This action is used inside an If block to check for another condition. It marks the
beginning of a block of code that is executed only if the condition checked by the If
Statement is false, all previous ElseIfs are false, and this ElseIf is true. You can use one
If Statement with multiple ElseIf Statements to check for multiple conditions.
To complete the dialog box
z
Variable
Select a variable from the first drop-down list, and a comparison method from the
second drop-down list.
z
The Value
Enter the value to be used in the comparison. This is case-sensitive, unless you
selected a comparison method that ignores case. If you enter variable names in this
field, include $ before the variable. You cannot use compiler variables.