2 Commits

Author SHA1 Message Date
8ccf037f25 Alpine container uses sh 2024-05-29 14:49:37 -04:00
901b9609b2 temp debug output 2024-05-29 14:43:47 -04:00

View File

@@ -424,12 +424,12 @@ setMCVersion() {
MC_VERSION="$USER_MC_VERSION" MC_VERSION="$USER_MC_VERSION"
# Containerized package manager # Containerized package manager
elif installPackage --silent buildah && elif installPackage --silent buildah &&
cnt=$(buildah from --quiet alpine:edge) &>/dev/null && cnt=$(buildah from --quiet alpine:edge) &&
buildah run "$cnt" -- bash -c \ buildah run "$cnt" -- sh -c \
"apk add apt" &>/dev/null && "apk add apt" &>/dev/null &&
buildah run "$cnt" -- bash -c \ buildah run "$cnt" -- sh -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 && "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 \ buildah run "$cnt" -- sh -c \
"apt update --allow-insecure-repositories &>/dev/null" &>/dev/null && "apt update --allow-insecure-repositories &>/dev/null" &>/dev/null &&
MC_VERSION=$(buildah run "$cnt" -- apt-cache policy mediacenter?? | grep Candidate | awk '{print $2}' | sort -V | tail -n1) &>/dev/null && MC_VERSION=$(buildah run "$cnt" -- apt-cache policy mediacenter?? | grep Candidate | awk '{print $2}' | sort -V | tail -n1) &>/dev/null &&
[[ $MC_VERSION =~ ([0-9]+.[0-9]+.[0-9]+) ]]; then [[ $MC_VERSION =~ ([0-9]+.[0-9]+.[0-9]+) ]]; then