diff options
author | Dominik Lisiak <dominik.lisiak@bemsoft.pl> | 2018-10-29 02:11:48 +0100 |
---|---|---|
committer | Dominik Lisiak <dominik.lisiak@bemsoft.pl> | 2018-10-29 02:11:48 +0100 |
commit | 71caabd6446ab183ec74c2c55374e6342ea86f65 (patch) | |
tree | 84411598f4667daeef3db4f881bf50fe74937cbd /security/ossec-hids-local/files/ossec-hids.in | |
parent | Added help command. (diff) | |
download | ossec-71caabd6446ab183ec74c2c55374e6342ea86f65.tar.xz |
Added furthe help messages and comments.
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() { |