Browse Source

fix resolver

main
pvincent 8 months ago
parent
commit
257b68ff26
  1. 2
      README.md
  2. 28
      lib/install.sh

2
README.md

@ -59,6 +59,8 @@ Debian12 fresh install
* ./miaou/lib/install.sh dev
* # OR:
* EMAIL=<your email> ./miaou/lib/install.sh dev
* # then, FINALLY
* miaou
Nested container test drive
----------------------------

28
lib/install.sh

@ -354,25 +354,25 @@ function miaou_resolver() {
else
echo "miaou-resolver in NetworkManager dispatcher already initialized!"
fi
else
if sudo systemctl is-enabled systemd-resolved.service --quiet; then
echo -n "disabling systemd-resolved..."
sudo systemctl stop systemd-resolved.service --quiet
sudo systemctl disable systemd-resolved.service --quiet
PREFIX="" echoinfo DONE
fi
fi
if sudo systemctl is-enabled systemd-resolved.service --quiet; then
echo -n "disabling systemd-resolved..."
sudo systemctl stop systemd-resolved.service --quiet
sudo systemctl disable systemd-resolved.service --quiet
PREFIX="" echoinfo DONE
fi
if ! grep -q "nameserver $bridge" /etc/resolv.conf; then
echo -n "customize resolv.conf from scratch with bridge=<$bridge>, gatewary=<$gateway> ..."
sudo tee /etc/resolv.conf &>/dev/null <<EOF
if ! grep -q "nameserver $bridge" /etc/resolv.conf; then
echo -n "customize resolv.conf from scratch with bridge=<$bridge>, gatewary=<$gateway> ..."
sudo tee /etc/resolv.conf &>/dev/null <<EOF
# generated by miaou
nameserver $bridge # LXD bridge
nameserver $gateway # gateway
EOF
PREFIX="" echoinfo DONE
else
echo "customize resolv.conf already already defined!"
fi
PREFIX="" echoinfo DONE
else
echo "customize resolv.conf already already defined!"
fi
}

Loading…
Cancel
Save