diff options
Diffstat (limited to 'security/ossec-hids-local/files/ossec-hids.in')
-rw-r--r-- | security/ossec-hids-local/files/ossec-hids.in | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/security/ossec-hids-local/files/ossec-hids.in b/security/ossec-hids-local/files/ossec-hids.in index c044f24..31ccfb4 100644 --- a/security/ossec-hids-local/files/ossec-hids.in +++ b/security/ossec-hids-local/files/ossec-hids.in @@ -91,6 +91,10 @@ agent_names_cmd="${ossec_home}/bin/manage_agents -l | sed -En -e 's|.*Name:[[:sp ossec_hids_help() { local indent=" " + + echo "Additional commands:" + echo + for command in ${extra_commands}; do case ${command} in ossec_conf) @@ -179,6 +183,30 @@ ossec_hids_help() { ;; esac done + + echo "To avoid problems with this script and the port in general, keep your XML-like" + echo "configuration pretty printed. Place element tags in single and separate lines." + echo "Comments can span on multiple but still separate lines." + echo "Do NOT use the following formatting:" + echo + echo "${indent}<elementA" + echo "${indent}${indent}attribute=\"value\"><!-- I am a long and" + echo "${indent}${indent}${indent}descriptive comment -->" + echo "${indent}${indent}<elementB>" + echo "${indent}${indent}${indent}Some content" + echo "${indent}${indent}</elementB><elementC>" + echo "${indent}${indent}${indent}Another content</elementC>" + echo "${indent}</elementA>" + echo + echo "Use instead:" + echo + echo "${indent}<elementA attribute=\"value\">" + echo "${indent}${indent}<!-- I am a long and" + echo "${indent}${indent}descriptive comment -->" + echo "${indent}${indent}<elementB>Some content</elementB>" + echo "${indent}${indent}<elementC>Another content</elementC>" + echo "${indent}</elementA>" + echo } ossec_hids_create_file() { |