From 71caabd6446ab183ec74c2c55374e6342ea86f65 Mon Sep 17 00:00:00 2001 From: Dominik Lisiak Date: Mon, 29 Oct 2018 02:11:48 +0100 Subject: Added furthe help messages and comments. --- security/ossec-hids-local/files/ossec-hids.in | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'security/ossec-hids-local/files/ossec-hids.in') 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}" + echo "${indent}${indent}" + echo "${indent}${indent}${indent}Some content" + echo "${indent}${indent}" + echo "${indent}${indent}${indent}Another content" + echo "${indent}" + echo + echo "Use instead:" + echo + echo "${indent}" + echo "${indent}${indent}" + echo "${indent}${indent}Some content" + echo "${indent}${indent}Another content" + echo "${indent}" + echo } ossec_hids_create_file() { -- cgit v1.2.3