mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
Fixed NameServer validation bug
This commit is contained in:
parent
b9dd6f4b73
commit
3b7eee4393
1 changed files with 3 additions and 3 deletions
|
@ -491,9 +491,9 @@ is_dns_nameserver_valid() {
|
|||
if [ ! -z "$remote" ]; then
|
||||
zone=$USER_DATA/dns/$d.conf
|
||||
a_record=$(echo $r |cut -f 1 -d '.')
|
||||
record=$(grep "RECORD='$a_record'" $zone| grep "TYPE='A'")
|
||||
if [ -z "$record" ]; then
|
||||
echo "Error: corresponding A record $a_record.$d is not exist"
|
||||
n_record=$(grep "RECORD='$a_record'" $zone| grep "TYPE='A'")
|
||||
if [ -z "$n_record" ]; then
|
||||
echo "Error: corresponding A record $a_record.$d does not exist"
|
||||
log_event "$E_NOTEXIST" "$EVENT"
|
||||
exit $E_NOTEXIST
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue