From 46dcaad88bae560e4798a16c91aecffcd5041058 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 31 Jan 2017 14:21:50 +0100 Subject: Fix hook. --- dehydrated/hook.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dehydrated') diff --git a/dehydrated/hook.sh b/dehydrated/hook.sh index 2aa257c..c68cdf6 100755 --- a/dehydrated/hook.sh +++ b/dehydrated/hook.sh @@ -10,7 +10,7 @@ REALM=$(cat /etc/local-ORG/realm) servicehosts() { SERVICE=$1; shift for binary in "$@"; do - which -- "$binary" || exit + > /dev/null which -- "$binary" || exit done cat "/etc/local-REDPILL/$REALM/${SERVICE}host" \ "/etc/local-REDPILL/$REALM/${SERVICE}althosts" \ @@ -18,7 +18,7 @@ servicehosts() { | perl -0777 -pe 's/\s*\#.*//gm;s/^\s+//;s/\s+$//;s/\s+/|/g' } MAILHOSTS=$(servicehosts mail postconf) -MAILHOSTS=$(servicehosts chat ejabberdctl) +CHATHOSTS=$(servicehosts chat ejabberdctl) case "$ACTION" in deploy_challenge) ;; -- cgit v1.2.3