mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-13 10:07:42 -07:00
commit
b370cbf62b
1 changed files with 10 additions and 0 deletions
|
@ -109,6 +109,16 @@ if [ ! -z "$DNS_CLUSTER" ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
# remove trailing dot at the end of NS/CNAME/MX/PTR/SRV record
|
||||
|
||||
if [[ $rtype =~ NS|CNAME|MX|PTR|SRV ]]; then
|
||||
trailing_dot2=$(echo $record | grep "\.$")
|
||||
if [ ! -z $trailing_dot2 ]; then
|
||||
record=$(echo "${record::-1}")
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Vesta #
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue