Browse Source

Use rootful container for testing

bryan 4 days ago
parent
commit
3325f933b5
1 changed files with 3 additions and 3 deletions
  1. 3 3
      installJRMC

+ 3 - 3
installJRMC

@@ -782,7 +782,7 @@ acquire_deb_new() {
 
   # Define the repositories to search
   cnt=$(sudo buildah from --quiet alpine:edge) &&
-  buildah run "$cnt" -- sh -c '
+  sudo buildah run "$cnt" -- sh -c '
     apk add apt &>/dev/null
     mkdir -p /download
     cat <<-EOF > /etc/apt/sources.list.d/jriver.sources
@@ -795,8 +795,8 @@ acquire_deb_new() {
     apt update --allow-insecure-repositories &>/dev/null
     cd /download
     apt download "mediacenter'"$MC_MVERSION"'"' &&
-  buildah copy "$cnt" /download/MediaCenter-"$MC_VERSION"*.deb "$OUTPUT_DIR/SOURCES/" &&
-  buildah rm "$cnt"
+  sudo buildah copy "$cnt" /download/MediaCenter-"$MC_VERSION"*.deb "$OUTPUT_DIR/SOURCES/" &&
+  sudo buildah rm "$cnt"
 
   # Return if the download was successful
   ((found)) && [[ -f $MC_DEB ]]