canonicalize POST scripts

This commit is contained in:
Trevor Cooper 2024-09-01 17:34:00 -07:00
parent fc00704876
commit 04106b0e90
Signed by: tcooper
GPG Key ID: 52364D7BBCEB35B8
3 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -x
@ -33,6 +33,7 @@ do
latest_iso=$(get_latest_iso "${version}" "${arch}" "${media}")
test -f "${FACTORY_ISO_FIXED_DIR}/${latest_iso}" || \
(cd "${FACTORY_ISO_FIXED_DIR}" || exit; curl -LOR "${ISO_URL_BASE}/${version_major}/isos/${arch}/${latest_iso}")
if [ "${version_major}" == "8" ]; then
openqa-cli api -X POST isos \
ISO="${latest_iso}" \
@ -70,6 +71,7 @@ do
latest_iso=$(get_latest_iso "${version}" "${arch}" "${media}")
test -f "${FACTORY_ISO_FIXED_DIR}/${latest_iso}" || \
(cd "${FACTORY_ISO_FIXED_DIR}" || exit; curl -LOR "${ISO_URL_BASE}/${version_major}/isos/${arch}/${latest_iso}")
case ${flavor} in
universal)
# universal will boot with DVD ISO but perform a network install from LOCATION

View File

@ -33,6 +33,7 @@ do
latest_image=$(get_latest_image "${version_major}" "${arch}" "${image_class}")
test -f "${FACTORY_HDD_FIXED_DIR}/${latest_image}" || \
(cd "${FACTORY_HDD_FIXED_DIR}" || exit; curl -LOR "${IMAGE_URL_BASE}/${version_major}/images/${arch}/${latest_image}")
flavor=$(printf "%s\n" "${image_class}" | tr '-' '_')
openqa-cli api -X POST isos \
HDD_2="${latest_image}" \

View File

@ -32,7 +32,7 @@ do
latest_iso=$(get_latest_iso "${version}" "${arch}" "${flavor}")
test -f "${FACTORY_ISO_FIXED_DIR}/${latest_iso}" || \
(cd "${FACTORY_ISO_FIXED_DIR}" || exit; curl -LOR "${ISO_URL_BASE}/${version_major}/isos/${arch}/${latest_iso}")
if [ "${version_major}" == "8" ]; then
openqa-cli api -X POST isos \
ISO="${latest_iso}" \