Skip to content

Commit 32cbcbd

Browse files
setisetajaapmarcus
andauthored
fix-dns-record-suspend (hestiacp#3411)
* 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>
1 parent 658e74f commit 32cbcbd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

func/domain.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,10 @@ update_domain_zone() {
531531
fi
532532
fi
533533
fi
534-
eval echo -e "\"$fields\"" | sed "s/%quote%/'/g" >> $zn_conf
534+
535+
if [ "$SUSPENDED" != 'yes' ]; then
536+
eval echo -e "\"$fields\"" | sed "s/%quote%/'/g" >> $zn_conf
537+
fi
535538
done < $USER_DATA/dns/$domain.conf
536539
}
537540

0 commit comments

Comments
 (0)