Skip to content

Commit

Permalink
Fix DNS resolving on Debian
Browse files Browse the repository at this point in the history
  • Loading branch information
conradgg committed Apr 28, 2024
1 parent 39caf2f commit 54bbc16
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wireguard-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,13 @@ function installWireGuard() {
installQuestions
# Install WireGuard tools and module
if [[ ${OS} == 'ubuntu' ]] || [[ ${OS} == 'debian' && ${VERSION_ID} -gt 10 ]]; then
if [[ ${OS} == 'ubuntu' ]]; then
apt-get update
apt-get install -y wireguard iptables resolvconf qrencode
elif [[ ${OS} == 'debian' && ${VERSION_ID} -gt 10 ]]; then
apt-get update
apt-get install -y wireguard iptables resolvconf qrencode
resolvconf -u
elif [[ ${OS} == 'debian' ]]; then
if ! grep -rqs "^deb .* buster-backports" /etc/apt/; then
echo "deb http://deb.debian.org/debian buster-backports main" >/etc/apt/sources.list.d/backports.list
Expand Down

0 comments on commit 54bbc16

Please sign in to comment.