Use container for MC deb download
This commit is contained in:
10
installJRMC
10
installJRMC
@@ -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 ]]
|
||||||
|
|||||||
Reference in New Issue
Block a user