Update mm-scripts.sh
This commit is contained in:
@@ -14,6 +14,7 @@ source /opt/idssys/defaults/default.inc
|
|||||||
source /opt/idssys/mediamanager/settings.conf
|
source /opt/idssys/mediamanager/settings.conf
|
||||||
source /opt/idssys/mediamanager/defaults.inc
|
source /opt/idssys/mediamanager/defaults.inc
|
||||||
[ -f ${MMFOLDER}/realwanip ] && source ${MMFOLDER}/realwanip
|
[ -f ${MMFOLDER}/realwanip ] && source ${MMFOLDER}/realwanip
|
||||||
|
[ -f ${MMFOLDER}/vers.info ] && source ${MMFOLDER}/vers.info
|
||||||
|
|
||||||
|
|
||||||
if [ "${2}" == "q" ]; then
|
if [ "${2}" == "q" ]; then
|
||||||
@@ -907,7 +908,7 @@ SHOWSRVCUPDATES(){
|
|||||||
|
|
||||||
repo_ver=`dpkg -s ${usrvc} | grep Version`
|
repo_ver=`dpkg -s ${usrvc} | grep Version`
|
||||||
echo -e "${idsCL[LightCyan]}${MM_SERVICES[${usrvc}]}:${idsCL[Default]} Apt Repo Controller"
|
echo -e "${idsCL[LightCyan]}${MM_SERVICES[${usrvc}]}:${idsCL[Default]} Apt Repo Controller"
|
||||||
echo -e "${idsCL[LightGreen]}Repo Release : ${repo_ver}${idsCL[Default]}"
|
echo -e "${idsCL[LightGreen]}Repo Release : ${repo_ver}${idsCL[Default]}"
|
||||||
else
|
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://'`
|
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://'`
|
||||||
@@ -922,6 +923,12 @@ SHOWSRVCUPDATES(){
|
|||||||
echo -e "${idsCL[LightGreen]}Stable Release : ${latest_ver}${idsCL[Default]}"
|
echo -e "${idsCL[LightGreen]}Stable Release : ${latest_ver}${idsCL[Default]}"
|
||||||
echo -e "${idsCL[LightGreen]}Beta Release : ${beta_ver}${idsCL[Default]}"
|
echo -e "${idsCL[LightGreen]}Beta Release : ${beta_ver}${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
var=${NTYPE}_REPL_CHECK[@]
|
||||||
|
if [ ! -z ${!var+x} ]; then
|
||||||
|
|
||||||
|
cver=${usrvc}_VER
|
||||||
|
echo -e "${idsCL[LightGreen]}Current ver : ${!cver}${idsCL[Default]}"
|
||||||
|
|
||||||
# echo
|
# echo
|
||||||
# echo ${latest_url}
|
# echo ${latest_url}
|
||||||
|
|||||||
Reference in New Issue
Block a user