From 74a240f986890eebef02443d3d789a7fbb9db1b7 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Thu, 27 Jan 2022 14:29:48 +0100 Subject: [PATCH] Add AdGuardHome new version as a suffix --- github/check.adguard.update | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/github/check.adguard.update b/github/check.adguard.update index d0fc37a..db51ed8 100755 --- a/github/check.adguard.update +++ b/github/check.adguard.update @@ -199,11 +199,9 @@ Create ${adguard_new_version_file} temp file to monitore." if is_var_nonempty "${adguard_new_version_url}"; then debug_message "Download AdGuard Home new version − \ Download new archive from ${adguard_new_version_url} and extract to /tmp/ ." - #wget --quiet "${adguard_new_version_url}" -O - | tar xz --transform="s/AdGuardHome/AdGuardHome.to.upgrade/g" --strip-components 2 wget --quiet "${adguard_new_version_url}" -O - | tar --extract --gzip --directory=/tmp --strip-components 2 ./AdGuardHome - #mv AdGuardHome.to.upgrade "${adguard_bin}.to.upgrade" - mv --force /tmp/AdGuardHome "${adguard_bin}.to.upgrade" \ - || error_message "Can't move /tmp/AdGuardHome to ${adguard_bin}.to.upgrade ." 4 + mv --force /tmp/AdGuardHome "${adguard_bin}.to.upgrade.${adguard_new_version}" \ + || error_message "Can't move /tmp/AdGuardHome to ${adguard_bin}.to.upgrade.${adguard_new_version} ." 4 fi ## }}}