Add AdGuardHome new version as a suffix
This commit is contained in:
parent
15589b0a0c
commit
74a240f986
|
@ -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
|
||||
## }}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue