Debug ubuntu repo-install

This commit is contained in:
2020-04-24 15:39:41 -04:00
parent eaf17abb65
commit 4a84f3a581

View File

@@ -561,7 +561,7 @@ EOF
#######################################
# Installs JRiver Media Center from a repository
# Returns:
# 0 if JRiver Media Center installed sucessfully, 1 if installation failed
# 0 if JRiver Media Center installed sucessfully
#######################################
_installMCFromRepo() {
@@ -581,7 +581,9 @@ EOF'
local _mcpkg="MediaCenter"
elif [[ "$ID" =~ ^(ubuntu|debian)$ ]]; then
wget -q "http://dist.jriver.com/mediacenter@jriver.com.gpg.key" -O- | _ifSudo apt-key add - > /dev/null 2>&1
_ifSudo wget "http://dist.jriver.com/latest/mediacenter/mediacenter$_mversion.list" -O "/etc/apt/sources.list.d/jriver.list" > /dev/null 2>&1
_bash_cmd 'cat <<-EOF > /etc/apt/sources.list.d/jriver.list
deb [arch=amd64,i386,armhf] http://dist.jriver.com/latest/mediacenter/ jessie main
EOF'
local _mcpkg="mediacenter$_mversion"
fi
@@ -591,7 +593,7 @@ EOF'
return 0
else
err "JRiver Media Center installation failed!"
return 1
exit 1
fi
}