summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-11-15 13:58:01 +0100
committerGitHub <noreply@github.com>2023-11-15 13:58:01 +0100
commitd06ab2f4e0a5918c569d678dd65a9262d27e2ce7 (patch)
tree1cd5584bc9758a8c139c5692952689775aba0299
parentfee3f6ad4fe400196bdae85692996d3a426d0220 (diff)
parente5ed69bf71130af8922cd4baeaa1d83db62a48b7 (diff)
downloadvyatta-cfg-system-d06ab2f4e0a5918c569d678dd65a9262d27e2ce7.tar.gz
vyatta-cfg-system-d06ab2f4e0a5918c569d678dd65a9262d27e2ce7.zip
Merge pull request #215 from vyos/mergify/bp/sagitta/pr-214
remote: T5726: Replace the download procedure call (backport #214)
-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.