From: Russ Allbery Date: Mon, 29 Nov 2010 23:39:25 +0000 (-0800) Subject: Suppress output from checking whether Apache is running X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fsp.git;a=commitdiff_plain;h=9cfa745dd7f318fedb6d2935a32e5e52aeb4bb58 Suppress output from checking whether Apache is running --- diff --git a/debian/libapache2-mod-shib2.postinst b/debian/libapache2-mod-shib2.postinst index 0e4cb1f..09c49d9 100755 --- a/debian/libapache2-mod-shib2.postinst +++ b/debian/libapache2-mod-shib2.postinst @@ -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