Przeglądaj źródła

fix-dns-record-suspend (#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>
Seti 3 lat temu
rodzic
commit
32cbcbdea4
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      func/domain.sh

+ 4 - 1
func/domain.sh

@@ -531,7 +531,10 @@ update_domain_zone() {
 				fi
 				fi
 			fi
 			fi
 		fi
 		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
 	done < $USER_DATA/dns/$domain.conf
 }
 }