From b491c08aa3ca408a3e1494096a87aeb9da8ca43a Mon Sep 17 00:00:00 2001 From: bryan Date: Wed, 29 May 2024 14:28:22 -0400 Subject: [PATCH] Switch to alpine container --- installJRMC | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/installJRMC b/installJRMC index 376fef1..dea633d 100755 --- a/installJRMC +++ b/installJRMC @@ -16,7 +16,7 @@ shopt -s extglob -declare -g SCRIPTVERSION="1.0.4" +declare -g SCRIPTVERSION="1.0-dev" declare -g BOARDURL="https://yabb.jriver.com/interact/index.php/board,83.0.html" # MC32 declare -g MC_VERSION="32.0.45" # Do find all replace declare -g MC_REPO="bullseye" # should match the MC_VERSION @@ -424,7 +424,9 @@ setMCVersion() { MC_VERSION="$USER_MC_VERSION" # Containerized package manager elif installPackage --silent buildah && - cnt=$(buildah from --quiet debian:stable-slim) &>/dev/null && + cnt=$(buildah from --quiet alpine:edge) &>/dev/null && + buildah run "$cnt" -- bash -c \ + "apk add apt" &>/dev/null && buildah run "$cnt" -- bash -c \ "echo 'deb [trusted=no arch=amd64,i386,armhf,arm64] http://dist.jriver.com/latest/mediacenter/ $MC_REPO main' > /etc/apt/sources.list 2>&1" &>/dev/null && buildah run "$cnt" -- bash -c \