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 ## }}}