From 257b68ff266f6d30826ea4d8b5f8e8c22a3300ae Mon Sep 17 00:00:00 2001 From: pvincent Date: Tue, 12 Mar 2024 17:58:40 +0400 Subject: [PATCH] fix resolver --- README.md | 2 ++ lib/install.sh | 28 ++++++++++++++-------------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 9be504f..b26db9f 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,8 @@ Debian12 fresh install * ./miaou/lib/install.sh dev * # OR: * EMAIL= ./miaou/lib/install.sh dev +* # then, FINALLY +* miaou Nested container test drive ---------------------------- diff --git a/lib/install.sh b/lib/install.sh index 330f9ee..9cf3e41 100755 --- a/lib/install.sh +++ b/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 <, gatewary=<$gateway> ..." + sudo tee /etc/resolv.conf &>/dev/null <