Update adguard-install.sh

Code refactoring
This commit is contained in:
tteckster 2023-06-24 16:39:55 -04:00 committed by GitHub
parent 7c6e700eaf
commit 4e6c68f164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

View File

@ -20,12 +20,7 @@ $STD apt-get install -y mc
msg_ok "Installed Dependencies"
msg_info "Installing AdGuard Home"
systemctl stop systemd-resolved
echo "DNSStubListener=no" >>/etc/systemd/resolved.conf
ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
wget -qL https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh
$STD bash install.sh
rm install.sh
$STD bash <(curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh)
msg_ok "Installed AdGuard Home"
motd_ssh