bind_set_renew_tlsa.sh: Fix error in determin zone.

This commit is contained in:
Christoph 2019-04-07 14:07:51 +02:00
parent f018611912
commit 85570a8f4a

View File

@ -307,7 +307,7 @@ done
_failed=false _failed=false
_hostname=$hostname _hostname=$hostname
_tmp_hostname=$(echo ${_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#*.} _hostname=${_hostname#*.}
_tmp_hostname=$(echo ${_hostname//\./\\.}) _tmp_hostname=$(echo ${_hostname//\./\\.})
if [[ ! $_tmp_hostname =~ \. ]]; then if [[ ! $_tmp_hostname =~ \. ]]; then