From d961b4027fe6550df4c7fdcc8153fced598d950b Mon Sep 17 00:00:00 2001 From: bryan Date: Thu, 3 Oct 2024 23:55:41 -0400 Subject: [PATCH] Give SUSE its own install method --- installJRMC | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/installJRMC b/installJRMC index 3640cd1..0bfee77 100755 --- a/installJRMC +++ b/installJRMC @@ -228,7 +228,7 @@ init() { PKG_REMOVE=(execute sudo zypper --non-interactive --quiet remove --clean-deps) PKG_UPDATE=(execute sudo zypper --non-interactive --quiet refresh jriver) PKG_QUERY=(rpm -q) - PKG_INSTALL_LOCAL() { install_mc_rpm; } + PKG_INSTALL_LOCAL() { install_mc_suse; } ;; arch) PKG_INSTALL=(execute sudo pacman -Sy --noconfirm) @@ -904,6 +904,16 @@ install_mc_rpm() { } +####################################### +# Installs Media Center RPM package on SUSE +####################################### +install_mc_suse() { + debug "Running: ${FUNCNAME[0]}" + + install_package --no-install-check --no-gpg-check --allow-downgrades "$MC_RPM" +} + + ####################################### # Installs Media Center manually ####################################### @@ -912,7 +922,7 @@ install_mc_generic() { local -a raw_files - echo "Using generic installation method!" + echo "Using generic installation method" declare extract_dir && extract_dir="$(mktemp -d)" pushd "$extract_dir" &>/dev/null || return