Always use deb822 sources format
This commit is contained in:
25
installJRMC
25
installJRMC
@@ -21,7 +21,7 @@
|
|||||||
# shellcheck disable=SC2329
|
# shellcheck disable=SC2329
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
|
|
||||||
declare -g SCRIPT_VERSION="1.35.9"
|
declare -g SCRIPT_VERSION="1.35.10-dev"
|
||||||
declare -g MC_VERSION_HARDCODE="35.0.37" # do find all replace
|
declare -g MC_VERSION_HARDCODE="35.0.37" # do find all replace
|
||||||
declare -g MC_REPO_HARDCODE="bookworm" # should match the MC_VERSION_HARDCODE
|
declare -g MC_REPO_HARDCODE="bookworm" # should match the MC_VERSION_HARDCODE
|
||||||
declare -g BOARD_ID="92.0" # MC35 board ID for fallback latest version detection
|
declare -g BOARD_ID="92.0" # MC35 board ID for fallback latest version detection
|
||||||
@@ -1795,21 +1795,14 @@ main() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Installing repository file: $repo_file"
|
echo "Installing repository file: $repo_file"
|
||||||
if [[ ($ID == "ubuntu" && $UBUNTU_CODENAME =~ ^[j-z]) ||
|
sudo tee "$repo_file" &>/dev/null <<-EOF
|
||||||
($ID == "debian" && ${VERSION_ID%%.*} -ge 12) ]]; then
|
Types: deb
|
||||||
sudo tee "$repo_file" &>/dev/null <<-EOF
|
URIs: https://dist.jriver.com/$channel/mediacenter/
|
||||||
Types: deb
|
Signed-By: $keyfile
|
||||||
URIs: https://dist.jriver.com/$channel/mediacenter/
|
Suites: $MC_REPO
|
||||||
Signed-By: $keyfile
|
Components: main
|
||||||
Suites: $MC_REPO
|
Architectures: amd64 armhf arm64
|
||||||
Components: main
|
EOF
|
||||||
Architectures: amd64 armhf arm64
|
|
||||||
EOF
|
|
||||||
else
|
|
||||||
sudo tee "$repo_file" &>/dev/null <<-EOF
|
|
||||||
deb [signed-by=$keyfile arch=amd64,armhf,arm64] https://dist.jriver.com/$channel/mediacenter/ $MC_REPO main
|
|
||||||
EOF
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Installing JRiver Media Center GPG key"
|
echo "Installing JRiver Media Center GPG key"
|
||||||
download "https://dist.jriver.com/mediacenter@jriver.com.gpg.key" "-" |
|
download "https://dist.jriver.com/mediacenter@jriver.com.gpg.key" "-" |
|
||||||
|
|||||||
Reference in New Issue
Block a user