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