update
This commit is contained in:
@@ -44,8 +44,8 @@ MM_SERVICE_PORTS['jackett']='9117'
|
||||
MM_SERVICE_PORTS['bazarr']='6767'
|
||||
|
||||
declare -A MM_UPDATE_REPO
|
||||
MM_UPDATE_REPO['ombi']='Ombi-app'
|
||||
#MM_UPDATE_REPO['ombi']='systemd'
|
||||
#MM_UPDATE_REPO['ombi']='Ombi-app'
|
||||
MM_UPDATE_REPO['ombi']='systemd'
|
||||
MM_UPDATE_REPO['radarr']='radarr'
|
||||
#MM_UPDATE_REPO['sonarr']='sonarr'
|
||||
MM_UPDATE_REPO['sonarr']='systemd'
|
||||
|
||||
@@ -868,9 +868,9 @@ SHOWSRVCUPDATES(){
|
||||
for usrvc in "${UPDATE_SERVICES[@]}"; do
|
||||
if [ "${MM_UPDATE_REPO[${usrvc}]}" == "systemd" ]; then
|
||||
|
||||
latest_ver=`dpkg -s ${usrvc} | grep Version`
|
||||
beta_ver=""
|
||||
|
||||
repo_ver=`dpkg -s ${usrvc} | grep Version`
|
||||
echo -e "${idsCL[LightCyan]}${MM_SERVICES[${usrvc}]}:${idsCL[Default]} Apt Repo Controller"
|
||||
echo -e "${idsCL[LightGreen]}Repo Release : ${repo_ver}${idsCL[Default]}"
|
||||
else
|
||||
|
||||
beta_url=`curl -s https://api.github.com/repos/${MM_UPDATE_REPO[${usrvc}]}/${usrvc}/releases | jq -r '.[0].assets[].browser_download_url' | grep "${MM_UPDATE_REPO_GREP[${usrvc}]}" | cut -d '"' -f 4 | grep -i 'https://'`
|
||||
@@ -880,13 +880,14 @@ SHOWSRVCUPDATES(){
|
||||
latest_url=`curl -s https://api.github.com/repos/${MM_UPDATE_REPO[${usrvc}]}/${usrvc}/releases/latest | jq -r '.assets[].browser_download_url' | grep "${MM_UPDATE_REPO_GREP[${usrvc}]}" | cut -d '"' -f 4 | grep -i 'https://'`
|
||||
latest_ver=`echo ${latest_url} | cut -d/ -f8`
|
||||
|
||||
[[ $BETA_SERVICES == *${usrvc}* ]] && cur='Beta' || cur='Stable'
|
||||
echo -e "${idsCL[LightCyan]}${MM_SERVICES[${usrvc}]}:${idsCL[Default]} ${cur} Selected"
|
||||
echo -e "${idsCL[LightGreen]}Stable Release : ${latest_ver}${idsCL[Default]}"
|
||||
echo -e "${idsCL[LightGreen]}Beta Release : ${beta_ver}${idsCL[Default]}"
|
||||
fi
|
||||
|
||||
|
||||
[[ $BETA_SERVICES == *${usrvc}* ]] && cur='Beta' || cur='Stable'
|
||||
echo -e "${idsCL[LightCyan]}${MM_SERVICES[${usrvc}]}:${idsCL[Default]} ${cur} Selected"
|
||||
echo -e "${idsCL[LightGreen]}Stable Release : ${latest_ver}${idsCL[Default]}"
|
||||
echo -e "${idsCL[LightGreen]}Beta Release : ${beta_ver}${idsCL[Default]}"
|
||||
|
||||
# echo
|
||||
# echo ${latest_url}
|
||||
# echo ${beta_url}
|
||||
|
||||
Reference in New Issue
Block a user