Download deb to tmp dir in container
This commit is contained in:
@@ -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" &&
|
||||
|
||||
Reference in New Issue
Block a user