[jetty9] 69/99: Display an error message when authbind is enabled but not installed

Jakub Adam xhaakon-guest at moszumanska.debian.org
Fri Oct 9 21:20:52 UTC 2015


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

xhaakon-guest pushed a commit to branch master
in repository jetty9.

commit e62a5ed3ca107c3652b1c5818fd51ea8d91f5aa0
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Thu Sep 11 19:48:29 2014 +0200

    Display an error message when authbind is enabled but not installed
---
 debian/jetty8.init | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/debian/jetty8.init b/debian/jetty8.init
index faf41d4..934b111 100644
--- a/debian/jetty8.init
+++ b/debian/jetty8.init
@@ -304,6 +304,11 @@ case "$1" in
 
 		AUTHBIND_COMMAND=""
 		if [ "$AUTHBIND" = "yes" ]; then
+			if [ ! -f "/usr/bin/authbind" ]; then
+				log_failure_msg "Authbind is not installed, please run 'apt-get install authbind' and retry"
+				exit 1
+			fi
+
 			AUTHBIND_COMMAND="/usr/bin/authbind --deep /bin/bash -c "
 			JETTY_CMD="'$JETTY_CMD'"
 		fi

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



More information about the pkg-java-commits mailing list