bind_set_renew_tlsa.sh: Fix error in determin zone.
This commit is contained in:
parent
f018611912
commit
85570a8f4a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user