ncsa / xcat-tools

Useful tools for xCAT
BSD 3-Clause "New" or "Revised" License
8 stars 0 forks source link

01_setup_site.sh doesn't set _forwarders correctly when resolv.conf has comments inline #23

Closed bsper2 closed 3 years ago

bsper2 commented 3 years ago

01_setup_site.sh doesn't set _forwarders correctly when resolv.conf has comments inline

The default ncsa/control-repo sets up /etc/resolv.conf with comments at the end in-line: nameserver 127.0.0.1 # Unbound nameserver 141.142.2.2 # NCSA primary nameserver 141.142.230.144 # NCSA secondary

01_setup_site.sh grabs the last entry in the line, so $_forwarders in the above example ends up getting set as Unbound,primary,secondary

bsper2 commented 3 years ago

This was fixed in https://github.com/ncsa/xcat-tools/pull/24