diff options
author | Christian Breunig <christian@breunig.cc> | 2023-11-15 07:36:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-15 07:36:37 +0100 |
commit | ce947372c547af8b7b33e12a5cbec2eb54ec2931 (patch) | |
tree | 864180261695d0c82cea03f02705a6d0dbc1edd6 | |
parent | 93699233fff3dfee7366b5340b89697eb41b685e (diff) | |
parent | 77b37732f99ca67addfde6567d5ba61173ab7730 (diff) | |
download | vyatta-cfg-system-ce947372c547af8b7b33e12a5cbec2eb54ec2931.tar.gz vyatta-cfg-system-ce947372c547af8b7b33e12a5cbec2eb54ec2931.zip |
Merge pull request #214 from erkin/current
remote: T5726: Replace the download procedure call
-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. |