diff options
author | erkin <me@erkin.party> | 2023-11-14 20:25:16 +0300 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2023-11-15 10:01:59 +0000 |
commit | e5ed69bf71130af8922cd4baeaa1d83db62a48b7 (patch) | |
tree | 1cd5584bc9758a8c139c5692952689775aba0299 /scripts | |
parent | fee3f6ad4fe400196bdae85692996d3a426d0220 (diff) | |
download | vyatta-cfg-system-e5ed69bf71130af8922cd4baeaa1d83db62a48b7.tar.gz vyatta-cfg-system-e5ed69bf71130af8922cd4baeaa1d83db62a48b7.zip |
remote: T5726: Replace the download procedure call
(cherry picked from commit 77b37732f99ca67addfde6567d5ba61173ab7730)
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/install/install-image | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/install/install-image b/scripts/install/install-image index b4b9cfba..36b0b06b 100755 --- a/scripts/install/install-image +++ b/scripts/install/install-image @@ -100,9 +100,12 @@ TEMP_DIR="/var/tmp/install-image.$$" download_file () { + echo 'Downloading...' (REMOTE_USERNAME=$USERNAME \ REMOTE_PASSWORD=$PASSWORD \ - ip vrf exec $VRF python3 -c "import vyos.remote; vyos.remote.friendly_download('$1', '$2')") + ip vrf exec $VRF python3 -c \ + "import vyos.remote; vyos.remote.download('$1', '$2', progressbar=True, check_space=True)") + echo 'Download complete.' } # Try to fetch the ISO file using a URL provided by the user. |