update
This commit is contained in:
@@ -43,6 +43,14 @@ MM_UPDATE_REPO['lidarr']='lidarr'
|
|||||||
MM_UPDATE_REPO['jackett']='jackett'
|
MM_UPDATE_REPO['jackett']='jackett'
|
||||||
MM_UPDATE_REPO['bazarr']='morpheus65535'
|
MM_UPDATE_REPO['bazarr']='morpheus65535'
|
||||||
|
|
||||||
|
declare -A MM_UPDATE_REPO_GREP
|
||||||
|
MM_UPDATE_REPO_GREP['ombi']='linux-x64'
|
||||||
|
MM_UPDATE_REPO_GREP['radarr']='linux-core-x64'
|
||||||
|
MM_UPDATE_REPO_GREP['lidarr']='linux-core-x64'
|
||||||
|
MM_UPDATE_REPO_GREP['jackett']='LinuxAMDx64'
|
||||||
|
MM_UPDATE_REPO_GREP['bazarr']='zip'
|
||||||
|
|
||||||
|
|
||||||
if [ "${VPN_INTERFACE}" = "tun0" ]; then #openvpn
|
if [ "${VPN_INTERFACE}" = "tun0" ]; then #openvpn
|
||||||
VPN_START=(/bin/systemctl start openvpn)
|
VPN_START=(/bin/systemctl start openvpn)
|
||||||
VPN_STOP=(/bin/systemctl stop openvpn)
|
VPN_STOP=(/bin/systemctl stop openvpn)
|
||||||
|
|||||||
@@ -612,7 +612,7 @@ UPDATESERVICE(){
|
|||||||
|
|
||||||
echo "https://api.github.com/repos/${MM_UPDATE_REPO[${usrvc}]}/${usrvc}/releases/latest"
|
echo "https://api.github.com/repos/${MM_UPDATE_REPO[${usrvc}]}/${usrvc}/releases/latest"
|
||||||
|
|
||||||
latest_release_url=`curl -s https://api.github.com/repos/${MM_UPDATE_REPO[${usrvc}]}/${usrvc}/releases/latest | jq -r '.assets[].browser_download_url' | grep "linux-x64" | cut -d '"' -f 4 | grep -i 'https://'`
|
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
|
echo "$(date) - Updating Service (${usrvc}) : UPDATEURL = ${latest_release_url}" >> $logfile
|
||||||
|
|
||||||
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user