[Pkg-ossec-devel] [pkg-ossec] 01/01: Use db_input to call debconf, not db_get
Javier Fernandez-Sanguino Pen~a
jfs at moszumanska.debian.org
Sun Mar 2 16:08:16 UTC 2014
This is an automated email from the git hooks/post-receive script.
jfs pushed a commit to branch master
in repository pkg-ossec.
commit 70db8e2e20872eb3c96c0acfabffd5f6e2e0612a
Author: Javier Fernandez-Sanguino <jfs at debian.org>
Date: Sun Mar 2 17:07:56 2014 +0100
Use db_input to call debconf, not db_get
---
debian/ossec-hids-local.config | 17 +++++------------
1 file changed, 5 insertions(+), 12 deletions(-)
diff --git a/debian/ossec-hids-local.config b/debian/ossec-hids-local.config
index 7da8606..ef727b3 100755
--- a/debian/ossec-hids-local.config
+++ b/debian/ossec-hids-local.config
@@ -3,17 +3,10 @@
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_input ossec-hids-local/enable_email || true
+db_input ossec-hids-local/email_to || true
+db_input ossec-hids-local/email_server || true
+db_input ossec-hids-local/enable_syslog || true
+db_go
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