Unverified Commit a52ca0dd authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Print debug info

parent 5295def0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -171,7 +171,7 @@ configureNAT () {
  # Build DNS options from container /etc/resolv.conf

  if [ "$DEBUG" = "Y" ]; then
    echo && echo "/etc/resolv.conf:" && echo && cat /etc/resolv.conf && echo
    echo "/etc/resolv.conf:" && echo && cat /etc/resolv.conf && echo
  fi

  mapfile -t nameservers < <(grep '^nameserver' /etc/resolv.conf | sed 's/\t/ /g' | sed 's/nameserver //' | sed 's/ //g')