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?
pull/1207/head
nicedevil007 2 years ago committed by GitHub
parent 562e525aed
commit 4ee0814abe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      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"

Loading…
Cancel
Save