Use container for MC deb download

This commit is contained in:
2025-04-24 11:47:27 -04:00
parent e5638c019d
commit c7f53979de

View File

@@ -770,10 +770,12 @@ acquire_deb_new() {
fi fi
# Define the repositories to search # Define the repositories to search
apt_mc_container && execute sudo buildah run "$CNT" -- sh -c " apt_mc_container &&
mkdir -p /download && cd /download && apt-get download --allow-unauthenticated mediacenter$MC_MVERSION" && execute sudo buildah run "$CNT" -- sh -c "
execute sudo buildah copy "$CNT" "/download/*.deb" "$MC_DEB" && apt-get download --allow-unauthenticated mediacenter$MC_MVERSION &&
execute sudo buildah rm "$CNT" mkdir -p /download && mv *.deb /download/$fname" &&
execute sudo buildah copy "$CNT" "/download/$fname" "$MC_DEB" &&
execute sudo buildah rm "$CNT"
# Return if the download was successful # Return if the download was successful
((found)) && [[ -f $MC_DEB ]] ((found)) && [[ -f $MC_DEB ]]