* fix-dns-record-suspend fix for: suspended dns records not removed from zonefile * Apply formatting --------- Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
@@ -531,7 +531,10 @@ update_domain_zone() {
fi
- eval echo -e "\"$fields\"" | sed "s/%quote%/'/g" >> $zn_conf
+
+ if [ "$SUSPENDED" != 'yes' ]; then
+ eval echo -e "\"$fields\"" | sed "s/%quote%/'/g" >> $zn_conf
+ fi
done < $USER_DATA/dns/$domain.conf
}