Print debug info

This commit is contained in:
Kroese 2023-05-01 23:11:08 +02:00 committed by GitHub
parent a7559ce903
commit 65b89aac19

View File

@ -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')