mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 12:36:23 -07:00
Fix dkim record deletion command in v-delete-mail-domain-dkim script
This commit is contained in:
parent
213ccd47df
commit
4932dd3bb4
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ fi
|
|||
# Deleting dns record
|
||||
if [ ! -z "$DNS_SYSTEM" ] && [ -e "$USER_DATA/dns/$domain.conf" ]; then
|
||||
records=$($BIN/v-list-dns-records $user $domain plain)
|
||||
dkim_records=$(echo "$records" |grep -w '_domainkey' | cut -f 1 -d ' ')
|
||||
dkim_records=$(echo "$records" |grep -w '_domainkey' | awk '{print $1}')
|
||||
for id in $dkim_records; do
|
||||
$BIN/v-delete-dns-record $user $domain $id
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue