summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerkin <me@erkin.party>2023-11-14 20:25:16 +0300
committererkin <me@erkin.party>2023-11-14 20:25:16 +0300
commit77b37732f99ca67addfde6567d5ba61173ab7730 (patch)
tree2c18029c2bec6a8ceb2b37b3e8fb089063d9e1c2
parent1d5959a96a337e1065180199327175ccf6423b0f (diff)
downloadvyatta-cfg-system-77b37732f99ca67addfde6567d5ba61173ab7730.tar.gz
vyatta-cfg-system-77b37732f99ca67addfde6567d5ba61173ab7730.zip
remote: T5726: Replace the download procedure call
-rwxr-xr-xscripts/install/install-image5
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.