From 19d16c08ad8c46458a5f0668ac43c40c9cf58729 Mon Sep 17 00:00:00 2001 From: Amir Czwink Date: Mon, 30 Oct 2023 21:32:23 +0100 Subject: [PATCH] dns forwarder loop bug fix --- init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.sh b/init.sh index 2203e24..0958a96 100755 --- a/init.sh +++ b/init.sh @@ -72,7 +72,7 @@ appSetup () { " /etc/samba/smb.conf sed -i "s/LOCALDC/${URDOMAIN}DC/g" /etc/samba/smb.conf if [[ $DNSFORWARDER != "NONE" ]]; then - sed -i "/\[global\]/a \ + sed -i "/dns forwarder =/c \ \\\tdns forwarder = ${DNSFORWARDER}\ " /etc/samba/smb.conf fi