[Pkg-ossec-devel] [pkg-ossec] 07/09: cp debian/ossec-hids-local.config debian/ossec-hids-agent.config.

Jose Antonio Quevedo Muñoz jaqm-guest at moszumanska.debian.org
Sat Mar 1 14:41:41 UTC 2014


This is an automated email from the git hooks/post-receive script.

jaqm-guest pushed a commit to branch master
in repository pkg-ossec.

commit 3e649dfc3115a972953d77689bf142aa832f65f4
Author: Jose Antonio Quevedo <joseantonio.quevedo at gmail.com>
Date:   Sat Mar 1 14:39:26 2014 +0100

    cp debian/ossec-hids-local.config debian/ossec-hids-agent.config.
---
 debian/ossec-hids-agent.config | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/debian/ossec-hids-agent.config b/debian/ossec-hids-agent.config
new file mode 100755
index 0000000..7da8606
--- /dev/null
+++ b/debian/ossec-hids-agent.config
@@ -0,0 +1,19 @@
+#!/bin/sh -e
+
+test $DEBIAN_SCRIPT_DEBUG && set -v -x
+. /usr/share/debconf/confmodule
+
+# TODO 
+#  - configure the results in the configuration file
+#  - setup active response (firewall response, whitelist, etc.)
+db_get ossec-hids-local/enable_email || true;	EMAIL="$RET"
+db_get ossec-hids-local/email_to     || true;	EMAIL_TO="$RET"
+db_get ossec-hids-local/email_server || true;	EMAIL_SERVER="$RET"
+db_get ossec-hids-local/enable_syslog ||  true; SYSLOG="$RET"
+# Failsafe in case the values above are blank (jfs)
+[ -z "$EMAIL" ] && EMAIL="no"
+[ -z "$EMAIL_TO" ] && EMAIL_TO="root at localhost"
+[ -z "$EMAIL_SERVER" ] && EMAIL_SERVER="127.0.0.1"
+[ -z "$SYSLOG" ] && SYSLOG="no"
+db_stop
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ossec/pkg-ossec.git



More information about the Pkg-ossec-devel mailing list