From b19748615deb9166d316662f7b873841093c95db Mon Sep 17 00:00:00 2001 From: pvincent Date: Mon, 2 Sep 2024 09:05:50 +0400 Subject: [PATCH] chattr resolv.conf --- lib/install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/install.sh b/lib/install.sh index c10517e..341c2de 100755 --- a/lib/install.sh +++ b/lib/install.sh @@ -397,12 +397,14 @@ function miaou_resolver() { if ! grep -q "nameserver $bridge" /etc/resolv.conf; then echo -n "customize resolv.conf from scratch with bridge=<$bridge>, resolver=<$resolver> ..." + sudo chattr -i /etc/resolv.conf sudo tee /etc/resolv.conf &>/dev/null <