Replace buildah copy with mount
This commit is contained in:
10
installJRMC
10
installJRMC
@@ -772,12 +772,12 @@ acquire_deb_new() {
|
|||||||
# Define the repositories to search
|
# Define the repositories to search
|
||||||
local mnt
|
local mnt
|
||||||
apt_mc_container &&
|
apt_mc_container &&
|
||||||
execute sudo buildah run "$CNT" -- sh -c "
|
sudo buildah run "$CNT" -- sh -c "
|
||||||
apt-get download --allow-unauthenticated mediacenter$MC_MVERSION" &&
|
apt-get download --quiet --allow-unauthenticated mediacenter$MC_MVERSION" &&
|
||||||
mnt="$(sudo buildah mount "$CNT")"
|
mnt="$(sudo buildah mount "$CNT")"
|
||||||
execute sudo cp "$mnt"/*.deb "$MC_DEB" &&
|
sudo cp "$mnt"/*.deb "$MC_DEB" &&
|
||||||
execute sudo buildah umount "$CNT" &&
|
sudo buildah umount "$CNT" &&
|
||||||
execute sudo buildah rm "$CNT"
|
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