Skip to content

Commit

Permalink
fix for ubuntu
Browse files Browse the repository at this point in the history
"Failed to stop resolvconf.service: Unit resolvconf.service not loaded."
  • Loading branch information
loper authored Aug 9, 2024
1 parent cca915d commit 395b37e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/chce_wireguard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 395b37e

Please sign in to comment.