Fix duplicated DNS records in DNS cluster

Credits to: @madeITBelgium
This commit is contained in:
myvesta 2021-03-16 00:19:03 +01:00 committed by GitHub
parent afcf1a1572
commit 627684c0bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@ if [ "$flush" = 'records' ]; then
fi
# Flush domain
if [ "$flush" ! = 'no' ]; then
if [ "$flush" != 'no' ]; then
sed -i "/DOMAIN='$DOMAIN'/d" $USER_DATA/dns.conf 2> /dev/null
fi