diff options
Diffstat (limited to 'security/ossec-hids-local/scripts/plist.sh')
-rwxr-xr-x | security/ossec-hids-local/scripts/plist.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/security/ossec-hids-local/scripts/plist.sh b/security/ossec-hids-local/scripts/plist.sh index 8a3dfcd..c08c5e1 100755 --- a/security/ossec-hids-local/scripts/plist.sh +++ b/security/ossec-hids-local/scripts/plist.sh @@ -17,10 +17,10 @@ if [ "${OSSEC_TYPE}" != "agent" ]; then fixed_lines="${fixed_lines} %%MYSQL%%%%DOCSDIR%%/mysql.schema %%PGSQL%%%%DOCSDIR%%/postgresql.schema" fi skip_lines="%%PORTDOCS%%%%DOCSDIR%%/mysql.schema %%PORTDOCS%%%%DOCSDIR%%/postgresql.schema" -skip_paths="/etc/ossec.conf /etc/client.keys /logs/active-responses.log /logs/ossec.log /lua /.ssh" +skip_paths="/etc/ossec.conf /etc/client.keys /logs/active-responses.log /logs/ossec.log /lua" sample_paths="/etc/local_internal_options.conf.sample" if [ "${OSSEC_TYPE}" == "agent" ]; then - skip_paths="${skip_paths} /rules /agentless" + skip_paths="${skip_paths} /rules /agentless /.ssh" fi print_path() { @@ -41,7 +41,7 @@ print_path() { if [ "${group}" == "${GROUP}" ]; then group="" fi - local mode=`stat -f "%p" "${full_path}" | tail -c 4` + local mode=`stat -f "%p" "${full_path}" | tail -c 5` echo -e "${command}(${user},${group},${mode}) %%OSSEC_HOME%%${path}" >> "${PLIST}" } |