Ver código fonte

Removes obsolete bind9 configuration file

Debian 13 has removed the `named.conf.default-zones` file.
This commit updates the bind9 configuration to remove any
references to this file, preventing errors and ensuring
compatibility with Debian 13.
Jaap Marcus 10 meses atrás
pai
commit
c4e00c02fd
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      install/hst-install-debian.sh

+ 4 - 0
install/hst-install-debian.sh

@@ -1944,6 +1944,10 @@ if [ "$named" = 'yes' ]; then
 			systemctl restart apparmor >> $LOG
 		fi
 	fi
+	# Debian 13 removed the named.conf.default-zones file if doesn't exsists remove it from the config file
+	if [ ! -f /etc/bind/named.conf.default-zones ]; then
+		sed -i "/^include.*named.conf.default-zones/d" /etc/bind/named.conf
+	fi
 	update-rc.d bind9 defaults > /dev/null 2>&1
 	systemctl start bind9
 	check_result $? "bind9 start failed"