From 395b37ec1944d920d48b78b78035cf0381951031 Mon Sep 17 00:00:00 2001 From: loper Date: Fri, 9 Aug 2024 16:52:37 +0200 Subject: [PATCH] fix for ubuntu "Failed to stop resolvconf.service: Unit resolvconf.service not loaded." --- scripts/chce_wireguard.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/chce_wireguard.sh b/scripts/chce_wireguard.sh index 67cb39f..276da82 100755 --- a/scripts/chce_wireguard.sh +++ b/scripts/chce_wireguard.sh @@ -16,11 +16,11 @@ cp /etc/resolv.conf /etc/resolv.back # Update the package list and install necessary packages apt update -apt install -y --no-install-recommends libmnl-dev make qrencode wireguard-tools resolvconf git iptables +apt install -y --no-install-recommends libmnl-dev make qrencode wireguard-tools git iptables # Stop and disable resolvconf -systemctl stop resolvconf -systemctl disable resolvconf +systemctl stop resolvconf || true +systemctl disable resolvconf || true # Restore the original resolv.conf file mv /etc/resolv.back /etc/resolv.conf