From 71defe96723cf612b0e79abf42c3352ccc096870 Mon Sep 17 00:00:00 2001 From: bryan Date: Fri, 7 Nov 2025 20:11:46 -0500 Subject: [PATCH] Pass vars to working container instead of heredoc --- installJRMC | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/installJRMC b/installJRMC index ecb2d28..e77d9eb 100755 --- a/installJRMC +++ b/installJRMC @@ -2013,16 +2013,16 @@ create_mc_apt_container() { # shellcheck disable=SC2086 { command -v buildah &>/dev/null || install_package buildah &>/dev/null; } && CNT=$(sudo buildah from --quiet alpine:edge) && - sudo buildah run "$CNT" -- sh -c ' + sudo buildah run --env MC_REPO="$MC_REPO" --env MC_ARCH="$MC_ARCH" "$CNT" -- sh -c ' apk add --no-cache apt curl gnupg &>/dev/null curl -fsSL https://dist.jriver.com/mediacenter@jriver.com.gpg.key | gpg --dearmor -o /usr/share/keyrings/jriver-com-archive-keyring.gpg &>/dev/null cat <<-EOF > /etc/apt/sources.list.d/jriver.sources Types: deb URIs: https://dist.jriver.com/latest/mediacenter/ Signed-By: /usr/share/keyrings/jriver-com-archive-keyring.gpg - Suites: '$MC_REPO' + Suites: $MC_REPO Components: main - Architectures: '$MC_ARCH' + Architectures: $MC_ARCH EOF apt-get update &>/dev/null' && # If user passes command strings run them in the container