Download deb to tmp dir in container

This commit is contained in:
2025-04-24 19:13:04 -04:00
parent 25d86465a3
commit 95bf2f7b00

View File

@@ -711,9 +711,9 @@ acquire_deb() {
fi fi
# Download the deb file using the containerized package manager # Download the deb file using the containerized package manager
if ! { create_mc_apt_container "apt-get -t $MC_REPO download --allow-unauthenticated mediacenter$MC_MVERSION &>/dev/null" && if ! { create_mc_apt_container "cd /tmp && apt-get -t $MC_REPO download --allow-unauthenticated mediacenter$MC_MVERSION &>/dev/null" &&
mnt="$(sudo buildah mount "$CNT")" && mnt="$(sudo buildah mount "$CNT")" &&
execute sudo find "$mnt" -maxdepth 1 -type f -name "*.deb" -exec cp {} "$MC_DEB" \; && execute sudo find "$mnt/tmp" -maxdepth 1 -type f -name "*.deb" -exec cp {} "$MC_DEB" \; &&
[[ -f $MC_DEB ]] && [[ -f $MC_DEB ]] &&
execute sudo chown "$USER:$USER" "$MC_DEB" && execute sudo chown "$USER:$USER" "$MC_DEB" &&
execute sudo buildah umount "$CNT" && execute sudo buildah umount "$CNT" &&