[debian-edu-commits] [Git][debian-edu/debian-edu-config][master] fix main server network setup. Closes: #1055647.

Holger Levsen (@holger) gitlab at salsa.debian.org
Thu Nov 9 16:37:12 GMT 2023



Holger Levsen pushed to branch master at Debian Edu / debian-edu-config


Commits:
e009a76e by Wolfgang Schweer at 2023-11-09T17:36:48+01:00
fix main server network setup. Closes: #1055647.

- - - - -


1 changed file:

- share/debian-edu-config/d-i/pre-pkgsel


Changes:

=====================================
share/debian-edu-config/d-i/pre-pkgsel
=====================================
@@ -121,12 +121,6 @@ EOF
 auto lo
 iface lo inet loopback
 EOF
-    if [ "$DNSDOMAIN" ] && [ "$NAMESERVER" = "127.0.0.1" ] ; then
-	cat >> $interfaces <<EOF
-    dns-search $DNSDOMAIN
-    dns-nameservers $NAMESERVER
-EOF
-    fi
 
     for interface in eth0 eth1 ; do
 	eval "ifinfo=\$$interface"
@@ -159,6 +153,12 @@ EOF
     gateway $gateway
 EOF
 		fi
+	    if [ "$DNSDOMAIN" ] && [ "$NAMESERVER" = "127.0.0.1" ] ; then
+			cat >> $interfaces <<EOF
+    dns-search $DNSDOMAIN
+    dns-nameservers $NAMESERVER
+EOF
+	    fi
 		cat >> $interfaces <<EOF
 # The commented lines below is to be used if a DHCP server is in use
 #iface $interface inet dhcp



View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/e009a76e6031b2a89c05fcb950813e1f643c9c78

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/e009a76e6031b2a89c05fcb950813e1f643c9c78
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20231109/d9d5d147/attachment-0001.htm>


More information about the debian-edu-commits mailing list