diff --git a/installJRMC b/installJRMC index 8887e1a..632297d 100755 --- a/installJRMC +++ b/installJRMC @@ -711,9 +711,9 @@ acquire_deb() { fi # 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")" && - 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 ]] && execute sudo chown "$USER:$USER" "$MC_DEB" && execute sudo buildah umount "$CNT" &&