Alpine container uses sh

This commit is contained in:
2024-05-29 14:49:37 -04:00
parent 901b9609b2
commit 8ccf037f25

View File

@@ -425,11 +425,11 @@ setMCVersion() {
# Containerized package manager # Containerized package manager
elif installPackage --silent buildah && elif installPackage --silent buildah &&
cnt=$(buildah from --quiet alpine:edge) && 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