From 85570a8f4a96498fc90f8ac486a79501edf87cfb Mon Sep 17 00:00:00 2001 From: Christoph Date: Sun, 7 Apr 2019 14:07:51 +0200 Subject: [PATCH] bind_set_renew_tlsa.sh: Fix error in determin zone. --- bind_set_renew_tlsa.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bind_set_renew_tlsa.sh b/bind_set_renew_tlsa.sh index 3f9457a..116524d 100755 --- a/bind_set_renew_tlsa.sh +++ b/bind_set_renew_tlsa.sh @@ -307,7 +307,7 @@ done _failed=false _hostname=$hostname _tmp_hostname=$(echo ${_hostname//\./\\.}) -while ! grep -e "$_tmp_hostname" $ZONES_DECLARATION_FILE > /dev/null 2>&1 ; do +while ! grep -E "^[[:space:]]*zone[[:space:]]+\"$_tmp_hostname\"" $ZONES_DECLARATION_FILE > /dev/null 2>&1 ; do _hostname=${_hostname#*.} _tmp_hostname=$(echo ${_hostname//\./\\.}) if [[ ! $_tmp_hostname =~ \. ]]; then