[Pkg-ossec-devel] [SCM] Git repository for pkg-ossec branch, debian, updated. f89fb2c00b1a2606035e5cd0e35b4ebe99f049ac
Javier Fernandez-Sanguino
jfs at debian.org
Wed Aug 29 12:57:51 UTC 2012
The following commit has been merged in the debian branch:
commit ab424ba4b1a42cbea562dc4e0b52352acc685674
Author: Javier Fernandez-Sanguino <jfs at debian.org>
Date: Wed Aug 29 02:51:43 2012 +0200
Do not send output to admin, to omit 'usermod: without changes' messages on upgrades
diff --git a/debian/ossec-hids-agent.preinst b/debian/ossec-hids-agent.preinst
index ccecc4b..7a2fdc0 100644
--- a/debian/ossec-hids-agent.preinst
+++ b/debian/ossec-hids-agent.preinst
@@ -40,17 +40,17 @@ case "$1" in
usermod -c "Ossec IDS" \
-d $HOMEDIR \
-g $OSSECGROUP \
- $OSSECUSER >/dev/null
+ $OSSECUSER >/dev/null 2>&1 || true
usermod -c "Ossec IDS Email alerter" \
-d $HOMEDIR \
-g $OSSECGROUP \
- ${OSSECUSER}m >/dev/null
+ ${OSSECUSER}m >/dev/null 2>&1 || true
usermod -c "Ossec IDS Remote Commmunication" \
-d $HOMEDIR \
-g $OSSECGROUP \
- ${OSSECUSER}r >/dev/null
+ ${OSSECUSER}r >/dev/null 2>&1 || true
;;
configure)
diff --git a/debian/ossec-hids-local.preinst b/debian/ossec-hids-local.preinst
index ccecc4b..7a2fdc0 100644
--- a/debian/ossec-hids-local.preinst
+++ b/debian/ossec-hids-local.preinst
@@ -40,17 +40,17 @@ case "$1" in
usermod -c "Ossec IDS" \
-d $HOMEDIR \
-g $OSSECGROUP \
- $OSSECUSER >/dev/null
+ $OSSECUSER >/dev/null 2>&1 || true
usermod -c "Ossec IDS Email alerter" \
-d $HOMEDIR \
-g $OSSECGROUP \
- ${OSSECUSER}m >/dev/null
+ ${OSSECUSER}m >/dev/null 2>&1 || true
usermod -c "Ossec IDS Remote Commmunication" \
-d $HOMEDIR \
-g $OSSECGROUP \
- ${OSSECUSER}r >/dev/null
+ ${OSSECUSER}r >/dev/null 2>&1 || true
;;
configure)
diff --git a/debian/ossec-hids-server.preinst b/debian/ossec-hids-server.preinst
index ccecc4b..73db4eb 100644
--- a/debian/ossec-hids-server.preinst
+++ b/debian/ossec-hids-server.preinst
@@ -40,17 +40,17 @@ case "$1" in
usermod -c "Ossec IDS" \
-d $HOMEDIR \
-g $OSSECGROUP \
- $OSSECUSER >/dev/null
+ $OSSECUSER >/dev/null 2>&1 || true
usermod -c "Ossec IDS Email alerter" \
-d $HOMEDIR \
-g $OSSECGROUP \
- ${OSSECUSER}m >/dev/null
+ ${OSSECUSER}m >/dev/null 2>&1 || true
usermod -c "Ossec IDS Remote Commmunication" \
-d $HOMEDIR \
-g $OSSECGROUP \
- ${OSSECUSER}r >/dev/null
+ ${OSSECUSER}r >/dev/null 2>&1 || true
;;
configure)
--
Git repository for pkg-ossec
More information about the Pkg-ossec-devel
mailing list