소스 검색

Modernize sources list for containerized package manager

bryan 4 주 전
부모
커밋
902bf171de
1개의 변경된 파일8개의 추가작업 그리고 6개의 파일을 삭제
  1. 8 6
      installJRMC

+ 8 - 6
installJRMC

@@ -435,12 +435,14 @@ get_latest_mc_version() {
   if install_package --silent buildah && 
   cnt=$(buildah from --quiet alpine:edge 2>/dev/null) &&
 buildah run "$cnt" -- sh -c "apk add apt &>/dev/null &&
-cat <<-EOF > /etc/apt/sources.list.d/dist.jriver.com.sources
-    Types: deb
-    URIs: https://dist.jriver.com/latest/mediacenter/
-    Suites: $1
-    Components: main
-EOF && cat /etc/apt/sources.list.d/dist.jriver.com.sources && apt update --allow-insecure-repositories" &&
+  cat <<-EOF > /etc/apt/sources.list.d/dist.jriver.com.sources
+		Types: deb
+		URIs: https://dist.jriver.com/latest/mediacenter/
+		Suites: $1
+		Components: main
+	EOF &&
+  cat /etc/apt/sources.list.d/dist.jriver.com.sources &&
+  apt update --allow-insecure-repositories" &&
   MC_VERSION=$(buildah run "$cnt" -- apt-cache policy mediacenter?? | grep Candidate | awk '{print $2}' | sort -V | tail -n1) &>/dev/null &&
   [[ $MC_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+ ]]; then
     mc_version_source="containerized package manager"