[apache2] 01/02: lintian: invoke logger without path

Stefan Fritsch sf at moszumanska.debian.org
Sun Sep 28 20:58:28 UTC 2014


This is an automated email from the git hooks/post-receive script.

sf pushed a commit to branch master
in repository apache2.

commit 81211d61c86267cc80fcc10fea7a431f3fb20441
Author: Stefan Fritsch <sf at sfritsch.de>
Date:   Sun Sep 28 22:50:46 2014 +0200

    lintian: invoke logger without path
---
 debian/apache2.postinst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/apache2.postinst b/debian/apache2.postinst
index 56cc3b1..fb08c04 100644
--- a/debian/apache2.postinst
+++ b/debian/apache2.postinst
@@ -397,8 +397,8 @@ msg ()
 	local PRIORITY="$1"
 	local MSG="$2"
 	echo "$PRIORITY: $MSG"
-	if [ -x /usr/bin/logger ]; then
-		/usr/bin/logger -p daemon.$PRIORITY -t apache2.postinst "$MSG" || true
+	if type logger > /dev/null 2>&1 ; then
+		logger -p daemon.$PRIORITY -t apache2.postinst "$MSG" || true
 	fi
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-apache/apache2.git



More information about the Pkg-apache-commits mailing list