From 16212c7edc8754a3a93f7303501db487a1b78a05 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 7 Feb 2023 17:53:07 +0100 Subject: [run-virt] Fix messages: Don't say wget when it's actually curl --- .../openslx/vmchooser/run-virt-includes/download_vm_metadata.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/modules/run-virt/data/opt') diff --git a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/download_vm_metadata.inc b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/download_vm_metadata.inc index 5e7704c2..15a89672 100644 --- a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/download_vm_metadata.inc +++ b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/download_vm_metadata.inc @@ -28,13 +28,13 @@ download_metadata_default() { local TRIES WLOG TMPFILE RET ERRCODE CMDLINE # Sanity checks if ! check_dep curl; then - writelog "Could not find 'wget' in PATH: $PATH" - EXIT_TYPE="internal" EXIT_REASON="Fehlendes Dienstprogramm 'wget'!" cleanexit 1 + writelog "Could not find 'curl' in PATH: $PATH" + EXIT_TYPE="internal" EXIT_REASON="Fehlendes Dienstprogramm 'curl'!" cleanexit 1 fi # Try new unified .tar.gz way TMPFILE="$TMPDIR/metadata.tgz" - WLOG="$TMPDIR/wget-metadata.log" + WLOG="$TMPDIR/curl-metadata.log" CMDLINE= curl --help | grep -q -- --retry-connrefused && CMDLINE="--retry-connrefused" curl -L -o "$TMPFILE" -w '\nretval:%{http_code}\n' --retry 3 $CMDLINE --max-time 6 --retry-max-time 15 "${url_lecture_metadata}" &> "$WLOG" -- cgit v1.2.3-55-g7522