update
This commit is contained in:
@@ -50,6 +50,7 @@ MM_UPDATE_REPO_GREP['lidarr']='linux-core-x64'
|
|||||||
MM_UPDATE_REPO_GREP['jackett']='LinuxAMDx64'
|
MM_UPDATE_REPO_GREP['jackett']='LinuxAMDx64'
|
||||||
MM_UPDATE_REPO_GREP['bazarr']='zip'
|
MM_UPDATE_REPO_GREP['bazarr']='zip'
|
||||||
|
|
||||||
|
BETA_SERVICES=" radarr "
|
||||||
|
|
||||||
if [ "${VPN_INTERFACE}" = "tun0" ]; then #openvpn
|
if [ "${VPN_INTERFACE}" = "tun0" ]; then #openvpn
|
||||||
VPN_START=(/bin/systemctl start openvpn)
|
VPN_START=(/bin/systemctl start openvpn)
|
||||||
|
|||||||
@@ -616,10 +616,15 @@ UPDATESERVICE(){
|
|||||||
c=0; spc=''; spc1=$((${cw_spc}-${#msg}))
|
c=0; spc=''; spc1=$((${cw_spc}-${#msg}))
|
||||||
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||||
echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}"
|
echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}"
|
||||||
|
|
||||||
latest_release_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://'`
|
if [ "$BETA_SERVICES" == *"${usrvc}"* ]; then
|
||||||
echo "$(date) - Updating Service (${usrvc}) : UPDATEURL = ${latest_release_url}" >> $logfile
|
latest_release_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://'`
|
||||||
|
echo "$(date) - Updating Service (${usrvc}) : BETA UPDATEURL = ${latest_release_url}" >> $logfile
|
||||||
|
else
|
||||||
|
latest_release_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://'`
|
||||||
|
echo "$(date) - Updating Service (${usrvc}) : UPDATEURL = ${latest_release_url}" >> $logfile
|
||||||
|
fi
|
||||||
|
|
||||||
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||||
echo -e "${idsCL[LightCyan]}Download URL: ${idsCL[LightGreen]}${latest_release_url}${idsCL[Default]}"
|
echo -e "${idsCL[LightCyan]}Download URL: ${idsCL[LightGreen]}${latest_release_url}${idsCL[Default]}"
|
||||||
echo
|
echo
|
||||||
|
|||||||
Reference in New Issue
Block a user