[Pkg-net-snmp-commits] [pkg-net-snmp] 01/06: fix broken debian/snmpd.postinst
Hideki Yamane
henrich at moszumanska.debian.org
Sat Apr 26 05:27:12 UTC 2014
This is an automated email from the git hooks/post-receive script.
henrich pushed a commit to branch master
in repository pkg-net-snmp.
commit 960352a1bbf8cce83ee6aa7ccc9fc0608ab32588
Author: Hideki Yamane <henrich at debian.org>
Date: Tue Apr 1 23:15:49 2014 +0900
fix broken debian/snmpd.postinst
---
debian/changelog | 6 ++++++
debian/snmpd.postinst | 6 +++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 6cc36e8..e09b143 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+net-snmp (5.7.2.1~dfsg-2) UNRELEASED; urgency=medium
+
+ * fix broken debian/snmpd.postinst
+
+ -- Hideki Yamane <henrich at debian.org> Tue, 01 Apr 2014 23:15:15 +0900
+
net-snmp (5.7.2.1~dfsg-1) experimental; urgency=medium
* New upstream release
diff --git a/debian/snmpd.postinst b/debian/snmpd.postinst
index 3bcd8eb..c4c559e 100644
--- a/debian/snmpd.postinst
+++ b/debian/snmpd.postinst
@@ -10,9 +10,9 @@ case "$1" in
. /usr/share/debconf/confmodule
db_version 2.0
- if [ ! getent passwd snmp >/dev/null ]; then
+ if [ ! `getent passwd snmp >/dev/null` ]; then
- if [ ! getent group snmp >/dev/null ]; then
+ if [ ! `getent group snmp >/dev/null` ]; then
# no snmp user & group
adduser --quiet --system --group --home $SNMPDIR \
--shell /usr/sbin/nologin snmp
@@ -22,7 +22,7 @@ case "$1" in
--shell /usr/sbin/nologin snmp
fi
- elif [ ! getent group snmp >/dev/null ]; then
+ elif [ ! `getent group snmp >/dev/null` ]; then
# snmp user exists but no snmp group
addgroup --quiet --system snmp
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-net-snmp/pkg-net-snmp.git
More information about the Pkg-net-snmp-commits
mailing list