瀏覽代碼

Download signing key in container

bryan 3 天之前
父節點
當前提交
2903fd2bf8
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      installJRMC

+ 3 - 2
installJRMC

@@ -421,8 +421,9 @@ get_latest_mc_version() {
   if install_package --silent buildah && 
   cnt=$(sudo buildah from --quiet alpine:edge 2>/dev/null) &&
   sudo buildah run "$cnt" -- sh -c '
-    apk add apt &>/dev/null
-    cat <<-EOF > /etc/apt/sources.list.d/jriver.sources
+		apk add --no-cache apt curl gnupg &>/dev/null
+		curl -fsSL https://dist.jriver.com/mediacenter@jriver.com.gpg.key | gpg --dearmor -o /usr/share/keyrings/jriver-com-archive-keyring.gpg
+		cat <<-EOF > /etc/apt/sources.list.d/jriver.sources
 			Types: deb
 			URIs: https://dist.jriver.com/latest/mediacenter/
 			Suites: '"$MC_REPO"'