From 4ee0814abe2ecc7902edd792a0ddaa0236f826db Mon Sep 17 00:00:00 2001 From: nicedevil007 <17103076+nicedevil007@users.noreply.github.com> Date: Tue, 21 Mar 2023 21:21:37 +0100 Subject: [PATCH] Update alpine-adguard.sh We only overwrite the executable file for AdGuard to update it, all the other files of the tar don't matter. So there is no need at all to backup the temporary folder and then copy the files back, even simpler isn't it? --- ct/alpine-adguard.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ct/alpine-adguard.sh b/ct/alpine-adguard.sh index 1be351bb..2129aac8 100644 --- a/ct/alpine-adguard.sh +++ b/ct/alpine-adguard.sh @@ -25,7 +25,7 @@ var_cpu="1" var_ram="256" var_os="alpine" var_version="3.17" -variables +varibles color catch_errors @@ -88,10 +88,7 @@ while [ "$opt" != "" ]; do msg_info "Updating AdguardHome to $VER" wget -q "https://github.com/AdguardTeam/AdGuardHome/releases/download/$VER/AdGuardHome_linux_amd64.tar.gz" tar -xvf AdGuardHome_linux_amd64.tar.gz &>/dev/null - mkdir -p adguard-backup - cp -rf /opt/AdGuardHome/AdGuardHome.yaml /opt/AdGuardHome/data adguard-backup/ cp AdGuardHome/AdGuardHome /opt/AdGuardHome/AdGuardHome - cp -r adguard-backup/* /opt/AdGuardHome/ msg_ok "Updated AdguardHome" msg_info "Starting AdguardHome"