Use rootful container for testing
This commit is contained in:
12
installJRMC
12
installJRMC
@@ -421,9 +421,9 @@ get_latest_mc_version() {
|
|||||||
if install_package --silent buildah &&
|
if install_package --silent buildah &&
|
||||||
cnt=$(sudo buildah from --quiet alpine:edge 2>/dev/null) &&
|
cnt=$(sudo buildah from --quiet alpine:edge 2>/dev/null) &&
|
||||||
sudo buildah run "$cnt" -- sh -c '
|
sudo buildah run "$cnt" -- sh -c '
|
||||||
apk add --no-cache apt curl gnupg &>/dev/null
|
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
|
curl -fsSL https://dist.jriver.com/mediacenter@jriver.com.gpg.key | gpg --dearmor -o /usr/share/keyrings/jriver-com-archive-keyring.gpg
|
||||||
cat <<-EOF > /etc/apt/sources.list.d/jriver.sources
|
cat <<-EOF > /etc/apt/sources.list.d/jriver.sources
|
||||||
Types: deb
|
Types: deb
|
||||||
URIs: https://dist.jriver.com/latest/mediacenter/
|
URIs: https://dist.jriver.com/latest/mediacenter/
|
||||||
Signed-By: /usr/share/keyrings/jriver-com-archive-keyring.gpg
|
Signed-By: /usr/share/keyrings/jriver-com-archive-keyring.gpg
|
||||||
@@ -785,14 +785,16 @@ acquire_deb_new() {
|
|||||||
# Define the repositories to search
|
# Define the repositories to search
|
||||||
cnt=$(sudo buildah from --quiet alpine:edge) &&
|
cnt=$(sudo buildah from --quiet alpine:edge) &&
|
||||||
sudo buildah run "$cnt" -- sh -c '
|
sudo buildah run "$cnt" -- sh -c '
|
||||||
apk add apt &>/dev/null
|
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
|
||||||
mkdir -p /download
|
mkdir -p /download
|
||||||
cat <<-EOF > /etc/apt/sources.list.d/jriver.sources
|
cat <<-EOF > /etc/apt/sources.list.d/jriver.sources
|
||||||
Types: deb
|
Types: deb
|
||||||
URIs: https://dist.jriver.com/latest/mediacenter/
|
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
|
Components: main
|
||||||
Architectures: amd64 armhf arm64
|
Architectures: '"$MC_ARCH"'
|
||||||
EOF
|
EOF
|
||||||
apt-get update --allow-insecure-repositories &>/dev/null
|
apt-get update --allow-insecure-repositories &>/dev/null
|
||||||
cd /download
|
cd /download
|
||||||
|
|||||||
Reference in New Issue
Block a user