]> git.openfabrics.org - ~shefty/libibverbs.git/commitdiff
debian/libibverbs1.postinst: Let debhelper code run in all cases
authorJulien BLACHE <jblache@debian.org>
Thu, 30 Jun 2011 04:42:06 +0000 (21:42 -0700)
committerRoland Dreier <roland@purestorage.com>
Thu, 30 Jun 2011 04:42:06 +0000 (21:42 -0700)
Do not exit postinst if not configuring -- code added by debhelper needs
to run in all cases, not only the configure case.

Signed-off-by: Roland Dreier <roland@purestorage.com>
debian/libibverbs1.postinst

index f7d2ee6f801afb60b8dbe7155f60c57b048face3..784458a6e0b5ba14b835b1a8842447fb90808998 100644 (file)
@@ -3,10 +3,8 @@
 
 set -e
 
-if [ "$1" != configure ]; then
-    exit 0
+if [ "$1" = configure ]; then
+    getent group rdma > /dev/null 2>&1 || addgroup --system --quiet rdma
 fi
 
-getent group rdma > /dev/null 2>&1 || addgroup --system --quiet rdma
-
 #DEBHELPER#