From 61d9e2f98cf397c264d0fb81055b1253e592ce9f Mon Sep 17 00:00:00 2001 From: bryan Date: Fri, 7 Nov 2025 20:24:22 -0500 Subject: [PATCH] Remove rootful buildah for deb download --- installJRMC | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/installJRMC b/installJRMC index c126e02..39f42fa 100755 --- a/installJRMC +++ b/installJRMC @@ -768,11 +768,11 @@ acquire_deb() { # Download the deb file using the containerized package manager if ! { create_mc_apt_container "apt-get 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" \; && + mnt="$(buildah mount "$CNT")" && + execute find "$mnt" -maxdepth 1 -type f -name "*.deb" -exec cp {} "$MC_DEB" \; && [[ -f $MC_DEB ]] && - execute sudo buildah umount "$CNT" && - execute sudo buildah rm "$CNT"; }; then + execute buildah umount "$CNT" && + execute buildah rm "$CNT"; }; then debug "Failed to download DEB using containerized package manager" echo "Using legacy download method" # Define the repository search order