From 2ca5fdf933c2af852e9a554fd6a847eb3ecb71b2 Mon Sep 17 00:00:00 2001 From: bryan Date: Fri, 3 Dec 2021 13:11:34 -0500 Subject: [PATCH] Fix local RPM install --- installJRMC | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/installJRMC b/installJRMC index 5ec5eda..09c9299 100755 --- a/installJRMC +++ b/installJRMC @@ -20,7 +20,7 @@ shopt -s extglob -_scriptversion="1.0b2" +_scriptversion="1.0b3" _outputdir="$PWD/output" _createrepo_webroot="/var/www/jriver" _exec_user="$(whoami)" @@ -1306,11 +1306,11 @@ main() { # Install MC using package manager if [[ -v _install && "$_install" == "repo" ]]; then - if ! installMCFromRepo; then + if installMCFromRepo; then + echo "JRiver Media Center installed successfully" + else err "JRiver Media Center installation failed" exit 1 - else - echo "JRiver Media Center installed successfully" fi symlinkCerts restoreLicense @@ -1337,7 +1337,12 @@ main() { # Install RPM if [[ -v _install && "$_install" == "rpm" ]]; then - installPackage --nocheck --nogpgcheck "$_mcrpm" + if installPackage --nocheck --nogpgcheck "$_mcrpm"; then + echo "JRiver Media Center installed successfully" + else + err "JRiver Media Center installation failed" + exit 1 + fi symlinkCerts restoreLicense openFirewall "jriver"