From 202827ce4189ccf71080bc0a2521fb96b757c524 Mon Sep 17 00:00:00 2001 From: Chris Heath Date: Tue, 18 Apr 2023 06:12:17 -0500 Subject: [PATCH] Update adguard.sh (#1343) Fix for DNS lookup failing during wget command. --- ct/adguard.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/adguard.sh b/ct/adguard.sh index e8c65085..b90049bc 100644 --- a/ct/adguard.sh +++ b/ct/adguard.sh @@ -54,12 +54,12 @@ function default_settings() { function update_script() { header_info if [[ ! -d /opt/AdGuardHome ]]; then msg_error "No ${APP} Installation Found!"; exit; fi +wget -qL https://static.adguard.com/adguardhome/release/AdGuardHome_linux_amd64.tar.gz msg_info "Stopping AdguardHome" systemctl stop AdGuardHome msg_ok "Stopped AdguardHome" msg_info "Updating AdguardHome" -wget -qL https://static.adguard.com/adguardhome/release/AdGuardHome_linux_amd64.tar.gz tar -xvf AdGuardHome_linux_amd64.tar.gz &>/dev/null mkdir -p adguard-backup cp -r /opt/AdGuardHome/AdGuardHome.yaml /opt/AdGuardHome/data adguard-backup/ @@ -74,7 +74,7 @@ msg_ok "Started AdguardHome" msg_info "Cleaning Up" rm -rf AdGuardHome_linux_amd64.tar.gz AdGuardHome adguard-backup msg_ok "Cleaned" -msg_ok "Update Successfull" +msg_ok "Update Successful" exit }