Comments

1 comment

  • Avatar
    Jake

    Each ruleList can contain one or more <compareText>, <fileTest>, <fileContentTest> or any other rule sections. <compareText> text comparison rules can contain three fields :

    • text: The text to apply the logic comparison to; usually the value of an installer or environment variable.
    • logic: One of equals, contains, does_not_contain or does_not_equal.
    • value: The value that the text will be compared with.

    Example:

    <compareText>
        <text>${server}</text>
        <logic>equals</logic>
        <value>Apache</value>
    </compareText>
    

    <fileTest> file testing rules contain two fields :

    • path: The path to the file to test.
    • condition: One of exists, not_exists, writable, not_writable, readable, not_readable, executable, not_executable, is_directory, is_not_directory, is_file, is_not_file, is_empty, is_not_empty.

    Example:

    <fileTest>
        <path>/usr/bin/perl</path>
        <condition>executable</condition>
    </fileTest>
    

    <fileContentTest> file content testing rules contain three fields :

    • path: The path to the file to test.
    • logic: One of contains, does_not_contain
    • text: The text to apply the logic comparison to, usually the value of an installer or environment variable.

    Example:

    <fileContentTest>
        <path>/etc/group</path>
        <logic>contains</logic>
        <text>apache</text>
    </fileContentTest>
    

Please sign in to leave a comment.