Suppress output from checking whether Apache is running
authorRuss Allbery <rra@debian.org>
Mon, 29 Nov 2010 23:39:25 +0000 (15:39 -0800)
committerRuss Allbery <rra@debian.org>
Mon, 29 Nov 2010 23:53:33 +0000 (15:53 -0800)
debian/libapache2-mod-shib2.postinst

index 0e4cb1f..09c49d9 100755 (executable)
@@ -34,7 +34,7 @@ if [ "$1" = "configure" ] ; then
     # The new shibd (which is about to be started) requires the corresponding
     # Apache module, otherwise strange, hard to debug error messages result.
     if [ -f /etc/apache2/mods-enabled/shib2.load ] ; then
-        if invoke-rc.d apache2 status >/dev/null ; then
+        if invoke-rc.d apache2 status >/dev/null 2>&1 ; then
             invoke-rc.d apache2 restart
         fi
     fi