#!/bin/bash # Wrapper to patch an .fl manifest's stores to use an HTTPS web endpoint. # Usage: # ./scripts/rfs/patch-stores.sh dist/flists/modules-6.12.44-Zero-OS.fl https://hub.grid.tf/zos/zosbuilder/store [keep_s3_fallback] # # keep_s3_fallback: "true" to keep existing s3:// store rows as fallback; default "false" set -euo pipefail HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck source=/dev/null source "${HERE}/common.sh" if [[ $# -lt 2 ]]; then echo "Usage: $0 /path/to/file.fl https://web.endpoint/base [keep_s3_fallback]" >&2 exit 1 fi FL="$1" WEB="$2" KEEP="${3:-false}" rfs_common_patch_flist_stores "${FL}" "${WEB}" "${KEEP}" echo "[INFO] Patched stores in: ${FL}"