From fe0522e56c9fc59fa94d7731119931a95a62a787 Mon Sep 17 00:00:00 2001 From: pvincent Date: Sat, 24 Feb 2024 09:15:53 +0400 Subject: [PATCH] fix sudo nmcli --- lib/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/install.sh b/lib/install.sh index 7f2203a..ca661f3 100755 --- a/lib/install.sh +++ b/lib/install.sh @@ -304,7 +304,7 @@ function miaou_resolver() { sudo cp "$MIAOU_BASEDIR/templates/network-manager/50-miaou-resolver" /etc/NetworkManager/dispatcher.d/ sudo chmod +x /etc/NetworkManager/dispatcher.d/50-miaou-resolver ACTIVE_CONNECTION=$(nmcli -g NAME connection show --active | head -n1) - nmcli connection up "$ACTIVE_CONNECTION" &>/dev/null + sudo nmcli connection up "$ACTIVE_CONNECTION" &>/dev/null PREFIX="" echoinfo OK else echo "miaou-resolver in NetworkManager dispatcher already initialized!"